Taifun
November 11, 2022, 5:07pm
21
What you can access and how to access it depends on the file type and if the app is owner of the file or not
From an Android point of view there are an → Internal Storage and an → External Storage .
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
/data/data/<packageName>/
In order to be able to debug your app, AI2 saves the assets for → Companion on devices with
Android ≥ 10 (API ≥ 29):
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/
Android < 10 :
/storage/emulated/0/Android/data/edu.mit…
Taifun
1 Like
If what I expect is to access a list of file names with the extension .docx .doc .pdf in the document or download folder from the device and not the file belonging to the application, what is the right solution?
Thank you before
Taifun
November 12, 2022, 12:02am
23
Use the SAF extension to read files you do not own
1.Introduction
Description: Basically AI2 wrapper of Storage Access Framework. Using this extension, you can get read and/or write access to a single document or tree document (and all of its children recursively).
Latest Version: 1.3
Released: 2021-09-16T18:30:00Z (UTC)
Last Updated: 2023-11-15T18:30:00Z (UTC)
2.Blocks
[image]
[image]
[image]
[image]
[image]
[image]
[image]
[image]
[image]
3.Documentation
Events
ErrorOccurred
Event indicating error/excep…
Taifun
Thanks a lot Taifun, I seem to have found an overview of the solution from this link of yours. Some basics on Android storage system