Pick the fix
An app exports a CSV and wants the user to choose the folder. What's right under scoped storage?
Hint 1 of 1
Who should choose the location?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Launch ACTION_CREATE_DOCUMENT and write to the returned URI
Correct. The user picks a location; no storage permission is needed.
Why not the others?
- B Request MANAGE_EXTERNAL_STORAGE and write to /sdcard. Play restricts that permission to apps that need full file access.
- C Write to
getExternalFilesDir(). That's app-specific and removed on uninstall; users rarely find it. - D Write to
filesDir. That's private to the app.