The following code causes the java exception "java.lang.NullPointerException" (see Exception.txt attachment).
Dim oRM As RingtoneManager
.
.
.
Log("rtfile = " & rtfile)
Log("st = " & st)
u = oRM.AddToMediaStore(File.DirRootExternal & "/Ringtones", rtfile, st, False, False, True, False)
.
.
.
Directory Ringtones resides in the phone File.DirRootExternal directory.
The ringtone file '_Another_brick_in_te_wall.mp3' exists in the Ringtones directory.
B4A version : 10.2
B4A is a wonderful product.
Thank you for any help.
Dim oRM As RingtoneManager
.
.
.
Log("rtfile = " & rtfile)
Log("st = " & st)
u = oRM.AddToMediaStore(File.DirRootExternal & "/Ringtones", rtfile, st, False, False, True, False)
.
.
.
Directory Ringtones resides in the phone File.DirRootExternal directory.
The ringtone file '_Another_brick_in_te_wall.mp3' exists in the Ringtones directory.
B4A version : 10.2
B4A is a wonderful product.
Thank you for any help.
Attachments
Last edited: