You can use ACTION_VIEW, but you will need to know the MIME type for the file and put that in the Intent.
On Thu, Aug 11, 2011 at 12:37 AM, Atik <[email protected]> wrote: > Hi , > i have a list view, list item came from server side, some times its > mp3,pdf,txt,doc,mp4,3gp etc, so finally my list contains diff files of > diff extensions, so i want when user clicks on any item then, the by > defualt application should start from the phone, means when user > clicks on the pdf file then it should start dauflt pdf viewer of > phone, or when user clicks on the mp3 or 3gp file, it should start the > audio or media playe respectively. > > do i need to catch the exntesion of file when its clicked and then > start the application or can we do this with the help of actions in > intent filters.. > > Thanks in Advance > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 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

