I made an Android music player, to achieve a feature how to enter the file management, select music files, pop-up can be selected player in the music player I do this item. I watch multi-meter music, Huawei music software after installation, in the Android phone file Manager to select the MP3 file playback time can be ejected in which player format to open. In this small function, I believe some heroes can certainly know.
Waee6jmy6
Adoption Rate:49% level 10 2013.09.07
<intent-filter> <action android:name= "Android.intent.action.VIEW"/> <category android:name= " Android.intent.category.DEFAULT "/> <category android:name=" Android.intent.category.BROWSABLE "/> <data Android:scheme= "Content"/> <data android:scheme= "file"/> <data android:scheme= "http"/> <data Android:mimetype= "audio/*"/> <data android:mimetype= "Application/ogg"/> <data android:mimeType= " Application/x-ogg "/> <data android:mimetype=" Application/itunes "/> </intent-filter> Add this filter to your player activity and then process the intent in your code to get the file address in data. Play it
How Android Implements File Open mode is available for select features.