This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Hardcoded /sdcard/ call #145
Labels
enhancement
New feature or request
Comments
AndreMiras
added a commit
that referenced
this issue
May 30, 2019
Chose between app private directory and sdcard for keystore. Defaults to app private directory which is always writable. Things to improve: * copy data from and back sdcard on switching * change persist toggle back if no permission * `get_files_dir()` reuse "upstream", just override service part * `getExternalStoragePublicDirectory()` rather than `/sdcard/`, refs #145 * we're now cheating the singleton so we can remove the app params * account list is cached (server side), when adding new account we should invalidate that cache or it won't get pulled * `get_running_app()` could also be improved to reuse the singleton
AndreMiras
added a commit
that referenced
this issue
May 30, 2019
Chose between app private directory and sdcard for keystore. Defaults to app private directory which is always writable. Things to improve: * copy data from and back sdcard on switching * change persist toggle back if no permission * `get_files_dir()` reuse "upstream", just override service part * `getExternalStoragePublicDirectory()` rather than `/sdcard/`, refs #145 * we're now cheating the singleton so we can remove the app params * account list is cached (server side), when adding new account we should invalidate that cache or it won't get pulled * `get_running_app()` could also be improved to reuse the singleton
Also ref p4a upstream WIP PR kivy/python-for-android#1598 |
I gave it another go and things are not as I expected regarding the
And here the main.py I used:
And buildozer.spec:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Try to use e.g.
getExternalStoragePublicDirectory()
orgetExternalFilesDir()
rather than/sdcard/
since the location may vary.Double check to make sure to pick up one that persists upon app deletion.
See: https://stackoverflow.com/questions/26579869/how-can-i-let-users-access-the-internal-storage-directory-of-my-app
The text was updated successfully, but these errors were encountered: