Scenario
I've two apps, one is the Tracker App which records the incoming and outgoing calls and zipped these files, and sends the file path to the Main App via Inter-Process Communication
which uploads these files to the server.
Now I'm upgrading both apps to Android 11. In Tracker App, I'm using MediaStore.Files API
to save files and trying to read these files using the file path in Main App. While reading file File.canRead()
returns false
in Main App. Even I tried MediaStore API
to read these files it returns empty Cursor
.
Here I've few questions.
- Can I read files that are created by the Others app on Android 11? I read somewhere that you can't access others apps files in Android 11.
- Is my app eligible for
MANAGE_EXTERNAL_STORAGE
permission to access all files in storage? - What will be the best way to handle this scenario?
- Can ``` Storage Access Framework `` help me to handle this scenario?
I'm saving files in the public directory Documents/AppData/Audio
. Please give me working links regarding this. Any help will be appreciated. Thanks
, I'm using MediaStore.Files API to save files and trying to read these files using the file path
Wrong. You should use MediaStore api then too. – ProceedsIs my app eligible for MANAGE_EXTERNAL_STORAGE permission to access all files in storage?
You should ask google. – Proceeds