Monday, September 26, 2016

How to delete file from extSdCard (Secondary External Storage) without root ?

I am try to delete file from extSdCard (Secondary External Storage) by using "DocumentsContract.deleteDocument(getContentResolv er(), Uri.parse(fileName)); "but it returns false ,i also check file exist but not delete due to protection of write extSdCard from kitkat. but i am try to get grant permission by
" getContentResolver().takePersistableUriPermission( Uri.parse(fileName), takeFlags);" but gives error of
java.lang.SecurityException: No persistable permission grants found for UID 10258 and Uri . How can i fix it?


from xda-developers http://ift.tt/2cPwWGO
via IFTTT

No comments:

Post a Comment