I am adding images(jpeg and png) and audio(.mp3) files dynamically into a directory,i am listing out all the files in the horizontal scroll view.On click of images it will take us to another activity where the clicked images is displaying in the image view.My question is, i want to start media player on click of .mp3 file.How to do that?
how to know selected file is image or mp3 file? and i want to start audio player on click of mp3 file..How to do that?
Thank you in advance.