Hi, can someone give me info and sample on how stop a ringtone?
This Not stop the ringtone.
Help please.
Thank you.
B4X:
Dim jo As JavaObject
jo.InitializeStatic("android.media.RingtoneManager")
Dim jo2 As JavaObject
jo2.InitializeContext
Dim u As Uri
u.Parse(rm.GetDefault(rm.TYPE_RINGTONE))
ringtone =jo.RunMethodJO("getRingtone", Array(jo2, u))
'jo.RunMethod("stopPreviousRingtone", Null)
ringtone.RunMethod("stop", Null)
This Not stop the ringtone.
Help please.
Thank you.