I want to list all the available AUDIO (.mp3) files in Mobile device.
User can select any Audio file from list and can set as a Notification Tone for this App.
I worked out many sources and none of them satisfiable.
Thank you.
I want to list all the available AUDIO (.mp3) files in Mobile device.
User can select any Audio file from list and can set as a Notification Tone for this App.
I worked out many sources and none of them satisfiable.
Thank you.
Copyright © 2021 Jogjafile Inc.
First get all the available mp3 files and retreive their names using the code below do whatever u want with the retreived data for eg u can set up to a list view or showing them in a dialog etc.
retreive the names of all the mp3 files using a for loop like this.
pass the string array of retreived mp3 tones and attach it to list adapter to show all song names in a list and attach a click listener and
create a custom interface which gets triggered when notification arrives and then play the selected mp3 audio using media player like this: