I am sorry..I was too quick and that resulted in a stupid question..I guess I was just looking for a solution to avoid the crazyness I am facing for all the weekend trying to get the permission for my app to play external storage mp3 files. but clearly also copying requires permission..
let me try to explain better what I am trying to do:
- user chooses the sound he wants to be played in some conditions by the app. to allow user to choose the sound I have used the ShowRingtonePicker("rm", rm.TYPE_ALARM,"")
- if the users selects one of the "system" default sound, then I am able to play it anytime without issues using the media player
- if the users selects one sound that has been added from the SD (which is shown in the ringtone picker) then I get a
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/13620 from pid=27735, uid=10341 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
I have tried to add
AddPermission(android.permission.READ_EXTERNAL_STORAGE) to the manifest
but it did not help.
any idea?