Hello All,
I am trying to display Ringtone_Picker dialog which is the default in Android OS (which is shown in Alarm manager and when changing Ringtone). I searched the the b4a forum, but coudn't found anything. I checked the unfiltered log and open the default clock app in my phone, and this is what came up when i clicked on ringtone.
Does anyone know how to do this is basic4android? I tried the Dialogs library with ContentChooser and passed
but the filemanager opens. I want to display the ringtones.
--Another Try--
Okay I put the below code in the button click event
and it does display the ringtone chooser dialog. But after selecting the ringtone, the dialog gets closed and i get returned to my app. How do I catch the directory and filename from the above dialog?
I am trying to display Ringtone_Picker dialog which is the default in Android OS (which is shown in Alarm manager and when changing Ringtone). I searched the the b4a forum, but coudn't found anything. I checked the unfiltered log and open the default clock app in my phone, and this is what came up when i clicked on ringtone.
B4X:
Starting: Intent { act=android.intent.action.RINGTONE_PICKER cmp=android/com.android.internal.app.ResolverActivity (has extras) } from pid 4796
Does anyone know how to do this is basic4android? I tried the Dialogs library with ContentChooser and passed
B4X:
cc.Show("audio/ogg", "Choose audio file")
--Another Try--
Okay I put the below code in the button click event
B4X:
Dim rngintent As Intent
rngintent.Initialize("android.intent.action.RINGTONE_PICKER","")
rngintent.SetComponent("android/com.android.internal.app.ResolverActivity")
StartActivity(rngintent)
Last edited: