Android Question Looking for a library to set default ringtone, notification and alarm sounds

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

Is it possible to to the following in B4A?

1. Find out the location of every sound file on a phone and store the file path and file name of those files in SQLite.

2. Be able to set the default ringtone or default alarm or default notification sounds based on the sound files from number 1.

If the answer is yes, please let me know what libraries I can use.

Thanks.
 

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Erel,

Thanks for the reply.

Can you show the coding need to get all of the audio files with the ContentResolver? It looks like that may be what you call the ContentChooser.

Thanks.
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Erel,

Thanks for the phone library information.

Is it possible to get the results of the content chooser into a cursor that contains the uri and name of the all audio files on a phone?

At least I can now choose those files from a chooser but would also like to store those into a cursor.

B4X:
CC.Show("audio/*", "Choose audio file")

Thanks.
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Erel,

Thanks.

I tried it and like the chooser navigation bar/menu. I would like to use that same type of navigation in my app. Does B4A have a library that will allow me to duplicate that type of navigation my the app?
 
Upvote 0
Top