Bug? AddToMediaStore error

pdauwe

New Member
Licensed User
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.
 

Attachments

  • Exception.txt
    1.3 KB · Views: 349
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Please post Errors as TEXT (right click to copy)
 

pdauwe

New Member
Licensed User
OK. I tried again: the problem occurs when the file has already been defined. How can we know the URI of already defined files?
Thanks
 
Top