-
Notifications
You must be signed in to change notification settings - Fork 16
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
xcamera on Android #27
Comments
ps:The file I packed is Src / Kivy_ garden / xcamera / main.py |
Hey I have the same issue here. When I tried to run the widget on Windows, the pictures were saved to my user folder. However, when I tested it on two of my Android devices the pics were never found. The project was built with permissions to access the camera, and read/write external storage. |
I can see a printed message in logcat indicating a pic is being saved. But I still have no clues why I cannot find the pics anywhere on the devices. Not making any modifications to the widget. Just imported it and added it like "XCamera:". |
On all platforms Xcamera saves the jpg in 'cwd' The Android directory usage conventions are a story in themselves. And we have to remember permissions. Below is an example saving the jpg in a shared location. [I also hacked rotation so that if buildozer.spec "orientation = all" is set it works about right] However I have other questions #29
|
@RobertFlatt I want to store the images captured by XCAMERA in /storage/emulated/0/my_folder. How would I do it? My code snippet: from kivymd.app import MDApp =============================================================================from android.permissions import request_permissions, Permissionrequest_permissions([Permission.WRITE_EXTERNAL_STORAGE,Permission.READ_EXTERNAL_STORAGE])=============================================================================screen_helper = """ ScreenManager:
:
""" class MenuScreen(Screen):
class ProfileScreen(Screen):
Create the screen managersm = ScreenManager() class DemoApp(MDApp):
DemoApp().run() |
Why can I run xcamera on my PC, take photos and save them, but on Android platform, I can't save pictures
The text was updated successfully, but these errors were encountered: