Android SD Card Write Permission using SAF (Storage Access Framework)
问题 After a lot of findings about how to write(and rename) a file in SD Card (android 5 and above), I think the new SAF provided by android will be required to take permission from user to write SD card file. I have seen in this File Manger Application ES File Explorer that initially it takes read and write permission the following way as shown in pictures. After selecting sd card, the write permission is granted. So in the same way I tried to use SAF, but failed in renaming a file. My code: