I had this working flawlessly last night. I was exhausted and do not really remember what else I may or may not have added to it. Upon returning to the project to complete it, I get a java nullpointer exception. No idea what I could've done.
Any input is greatly appreciated.
Any input is greatly appreciated.
B4X:
Sub Limbs_LongClick
Msgbox("Copying requested file to your external media storage", "Set As")
Try
File.Copy(File.DirAssets,"limb2.mp3",File.DirRootExternal & "/media/audio/ringtones","limb2.mp3")
Catch
End Try
u = rm.AddToMediaStore(File.DirRootExternal & "/media/audio/ringtones", "limb2.mp3", "LostLimbs", True, True, True, False)
rm.SetDefault(rm.TYPE_RINGTONE, u)
Msgbox("Copy & Set Completed","DONE")
End Sub
Last edited: