I have obtained URI of a sound using RingTone Manager for NB6 custom sound, the URI of sound is:
When I try
I get the following exception.
and when I try to use:
I do not get any Exception but it also plays default sound, instead of the selected one.
however, the same URI works fine with RingtoneManager and plays the sound. Please suggest any workaround for this issue.
Thanks
B4X:
content://media/internal/audio/media/30
When I try
B4X:
n.CustomSound("content://media/internal/audio/media/30")
I get the following exception.
B4X:
(RuntimeException) java.lang.RuntimeException: Method: grantUriPermission not matched.
and when I try to use:
B4X:
Dim u As Uri
u.Parse("content://media/internal/audio/media/30")
n.CustomSound(u)
I do not get any Exception but it also plays default sound, instead of the selected one.
however, the same URI works fine with RingtoneManager and plays the sound. Please suggest any workaround for this issue.
Thanks