Hi, can someone give me info and sample on how stop a ringtone?
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)
Dim jo AsJavaObject jo.InitializeStatic("android.media.RingtoneManager") Dim jo2 AsJavaObject jo2.InitializeContext Dim u AsUri u.Parse(rm.GetDefault(rm.TYPE_RINGTONE))
ringtone =jo.RunMethodJO("getRingtone", Array(jo2, u)) 'jo.RunMethod("stopPreviousRingtone", Null) ringtone.RunMethod("stop", Null)