The task is to send the file in the internal memory to the files directory for editing.

files-path is.

Uri is formed correctly.

Intent on ACTION_EDIT with flags FLAG_GRANT_READ_URI_PERMISSION , FLAG_GRANT_WRITE_URI_PERMISSION .

Third-party applications open the file (for example, docx format), but cannot edit it. Tried Context.grantUriPermissions - does not help. Android developers says that you can read and edit internal storage files, but in fact it does not work.

Is it possible at all, or do I need to get getExternalFilesDir ?

  • What canRead()/canWrite() methods say? Yes, and show file_paths.xml with indication of which partition is used by external-path or files_path - Barmaley

0