Hi All
Android 5.1 has caught me out play ringtone using the media player, direct file access is no longer supported.
I have setup a timer to manage this now, but I need to check if the ringtone is currently being played as I need to loop the ringtone as I was doing using mediaplayer
The about code does not work, please help
Regard John.
Android 5.1 has caught me out play ringtone using the media player, direct file access is no longer supported.
I have setup a timer to manage this now, but I need to check if the ringtone is currently being played as I need to loop the ringtone as I was doing using mediaplayer
B4X:
Sub IsRingtonePlaying() As Boolean
Dim jo As JavaObject
jo.InitializeStatic("android.media.Ringtone")
Return jo.RunMethod("isPlaying",Null)
End Sub
The about code does not work, please help
Regard John.