Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileSystem Access Overview #72

Open
alex-Symbroson opened this issue Oct 16, 2023 · 2 comments
Open

FileSystem Access Overview #72

alex-Symbroson opened this issue Oct 16, 2023 · 2 comments
Labels
new category new doc page that should be created

Comments

@alex-Symbroson
Copy link
Collaborator

Overview for common fs functionality

  • absolute, relative paths, content uris
  • path shortcuts /sdcard, /extsdcard, /internal, /external, ...
  • scoped storage
  • Save/Load* functions & location
@alex-Symbroson alex-Symbroson added the new category new doc page that should be created label Oct 16, 2023
@alex-Symbroson
Copy link
Collaborator Author

from Cemal: They are saved as files in the shared_prefs folder /data/data/{Package Name}/shared_prefs

app.SaveText("test", "ok");
const path = `/data/data/${app.GetPackageName}/shared_prefs`;

function OnStart() {
  app.Alert(app.ListFolder(path), "Files");
  app.Alert(app.ReadFile(`${path}/${app.GetAppName()}.js.xml`), `${app.GetAppName}.js.xml`);
}

@alex-Symbroson
Copy link
Collaborator Author

AlanH — 05/04/2023 10:55
A while ago I intended writing a page about scoped storage but was advised to wait for changes (internal, external).
Now users report problems with Android 13 (granular storage) but I don’t have Tiramisu to advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new category new doc page that should be created
Projects
None yet
Development

No branches or pull requests

1 participant