> Is there a way to launch a viewer for common file types like TXT, DOC,
> XLS, PDF from within an app, like Gmail does.

If there is a component registered that recognizes the MIME type, you can
use startActivity().

So, for example, one hopes that DataViz' Documents to Go is set up to
handle ACTION_VIEW or ACTION_EDIT Intents on whatever the Microsoft
document MIME types are, so apps (like email clients) can ask Android to
open them via startActivity(), and Android will know how to process the
request.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to