When using the ringtonemanager - like the example below - is there a way to check to see if the bounce.mp3 has already been added to the mediastore (without invoking ringtone picker)? I am setting the ringtone in the background from a list of possible MP3s, and what I notice is that the first time an MP3 is selected it works ok. If I choose the same MP3 from the list again - it raises a null pointer on the AddToMediaStore line.
B4X:
Dim r As RingtoneManager
Dim u As String
u = r.AddToMediaStore(File.DirRootExternal, "bounce.mp3", "Bounce!", True, True, True, True)
r.SetDefault(r.TYPE_RINGTONE, u)