iz0ndg Active Member Licensed User Longtime User Dec 28, 2013 #1 my code work fine but the default notification sound is wrong (call ringtone) Code: Sub Process_Globals Dim RM As RingtoneManager End Sub Sub btnoti_Click Dim uri As String uri = RM.GetDefault(RM.TYPE_NOTIFICATION) RM.ShowRingtonePicker("RM",RM.TYPE_NOTIFICATION,False,uri) End Sub First voice of select list of ShowRingtonePicker is "default ringer" and not "default notification sound" uri of "default ringer" is "content://settings/system/ringtone" and not "content://settings/system/notification_sound" I done something wrong?
my code work fine but the default notification sound is wrong (call ringtone) Code: Sub Process_Globals Dim RM As RingtoneManager End Sub Sub btnoti_Click Dim uri As String uri = RM.GetDefault(RM.TYPE_NOTIFICATION) RM.ShowRingtonePicker("RM",RM.TYPE_NOTIFICATION,False,uri) End Sub First voice of select list of ShowRingtonePicker is "default ringer" and not "default notification sound" uri of "default ringer" is "content://settings/system/ringtone" and not "content://settings/system/notification_sound" I done something wrong?
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2013 #2 I done something wrong? Click to expand... Yes. You should use RM.TYPE_RINGTONE instead of NOTIFICATION.
I done something wrong? Click to expand... Yes. You should use RM.TYPE_RINGTONE instead of NOTIFICATION.
iz0ndg Active Member Licensed User Longtime User Dec 29, 2013 #3 Erel said: Yes. You should use RM.TYPE_RINGTONE instead of NOTIFICATION. Click to expand... Hi Erel thank's for the answer, but I use it to choose a notification sound for a widget. The picker works fine but the first element is a ringtone, while others are notification sounds. Do you think I can not use it to choose a notification? Happy Holidays !
Erel said: Yes. You should use RM.TYPE_RINGTONE instead of NOTIFICATION. Click to expand... Hi Erel thank's for the answer, but I use it to choose a notification sound for a widget. The picker works fine but the first element is a ringtone, while others are notification sounds. Do you think I can not use it to choose a notification? Happy Holidays !
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2013 #4 This is what I get when I run your code:
iz0ndg Active Member Licensed User Longtime User Dec 29, 2013 #5 This is what I get when I run my code on THL W200 stock firmware: It is probably a matter of Android version or firmware, Thank you anyway.
This is what I get when I run my code on THL W200 stock firmware: It is probably a matter of Android version or firmware, Thank you anyway.