Closed steelliberty closed 1 year ago
https://github.com/Android-for-Python/Android-for-Python-Users#android-storage
Thank you - much more light. Do you know of any examples using real path names besides the unit test? I am not clear as to how to use copy_to_shared and copy_from_shared concerning the paths and filenames
Thank you again,
SL
These use it, but if you have not internalized the documentation I doubt they will help.
https://github.com/Android-for-Python/share_send_example https://github.com/Android-for-Python/share_receive_example
As always, reading the documentation (several times) and experimenting is your best learning tool.
👋 @steelliberty, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
I built the python in pydroid3 and ran it on my android 10 car radio head. It works. It needs to read and write a local file to save state. Using pydroid3 and filemanager i was able to write to storage here /mnt/sdcard/python/ I created the python folder using filemanager and was able to read and write a file (called lastip) in that folder.
On the Android emulator I created a local file with the same path name using the existing /mnt/sdcard/ folder. When I run the android version of the application in android studio i get the error message
"PermissionError: [Errno 1] Operation not permitted: '/mnt/sdcard/python/lastip' 2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I Python for android ended."
I setup permissions found in spec file to allow internet access and local storage using android.private_storage = True.
The application will loadup and display the GUI but when I run it in the radio-head it just crashes -- likely with the same error
buildozer.spec
Command:
Spec file:
Logs