You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I destroy the Xcamera object, the app is crashing. When I close the app on an android 11, the android's camera icon is still active and keeps running until i force "quit the application" .
Once the Xcamera object is created removing it is not stopping , and when i use del it crashes.
Is there a way to exit the camera safely ?
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy_garden.xcamera import XCamera
from plyer import camera
#from android.permissions import request_permissions, Permission
from kivy.uix.image import Image
from kivy.uix.widget import Widget
from kivymd.app import MDApp
```try:
request_permissions([Permission.INTERNET,
Permission.READ_EXTERNAL_STORAGE,
Permission.WRITE_EXTERNAL_STORAGE,
Permission.CAMERA])
except:
pass```
KV = """
#:import XCamera kivy_garden.xcamera.XCamera
BoxLayout:
XCamera:
id : ycamera
"""
class uiApp(MDApp):
def build(self):
print('IM Building here')
self.screen = Builder.load_string(KV)
self.screen.ids['ycamera'].on_picture_taken = self.on_picture_taken
return self.screen
uiApp().run()
The text was updated successfully, but these errors were encountered:
When I destroy the Xcamera object, the app is crashing. When I close the app on an android 11, the android's camera icon is still active and keeps running until i force "quit the application" .
Once the Xcamera object is created removing it is not stopping , and when i use del it crashes.
Is there a way to exit the camera safely ?
The text was updated successfully, but these errors were encountered: