Just gave it a try - same error - and I also notice without the slash it gives a file path as storage/emulated/0MyRingtones in the error message, so I'm thinking the slash is needed.
Is it possible to load an mp3 into the media store from DirAssets?
I was following the example below in the documentation by replacing DirRootExternal with DirAssets. The attached image is the error I was getting - which led me to try to make a folder on DirRootExternal and copy the file there - and then add to media store - which led me to errors I opened this thread with.
B4X:
u = r.AddToMediaStore(File.DirRootExternal, "bounce.mp3", "Bounce!", True, True, True, True)
Nice - that did it- thanks! I was thinking the check would prevent something from overwriting my changes - but I guess it allows to overwrite a default manifest file?
You should never use the "do not overwrite manifest file option". It is only kept for backwards compatibility. All of the manifest changes should be done with the manifest editor.