I have a list of different types of files such as pdf, audio(mp3), video etc. I want to open those file using onClick event of the list items with supported viewer or applications. For example if the selected file will be an video file then, a dialog will be appeared having a list of installed as well as the default video players as below:
Can anyone help or guide me how to do that?
you should implement a chooser, like the example below,
EDIT also check this question, and combine my answer with the answer of this question nad you will get the result Launching an intent for file and MIME type?