below is a simple .apk that im putting together. It works great on my win laptop. it takes a picture and saves it to a dir as a .jpg. However when i build the .apk and run it on android, it does the exact same thing except the .jpg that it shoots out is just solid black. Im guessing I have trouble accessing the buffer?
from
kivy.app import App
from kivy.clock import Clock
from kivy.uix.scatterlayout import ScatterLayout
from kivy.core.camera import Camera
def snap(*args):
cam.texture.save("/storage/emulated/0/DCIM/TestPic.jpg") #!! Win/Android
class TestCamera(App):
def build(self):
blank = ScatterLayout()
global cam
cam = Camera(resolution = (640, 480), play = True)
Clock.schedule_once(snap, 5)
return blank
TestCamera().run()