Android - How to use new Storage Access Framework to copy files to external sd card
问题 I'm implementing a file browser feature in my app. I know how to gain persistent permission for the external sd card using the ACTION_OPEN_DOCUMENT_TREE intent and how to create folders and delete files/folders using the DocumentFile class. I can't however find a way to copy/move a file to an external sd card folder. Can you point me to the right direction ? 回答1: I have figured it out using lots of examples on SO. My solution for music files: private String copyFile(String inputPath, String