Hi all, does anyone know how to write this code using either JavaObject or Reflection libraries, maybe both are needed?
I'm not so good and don't really understand much how to use those two libraries, i've tried several things but none of them work
I am able to create the callback Object like this
i am using the CameraEx class example but i am trying to add the above code so that I can use this class in my EasyAR Library to be able to use a custom camera.
Thanks in advanced for any help or suggestions.
Walter
I'm not so good and don't really understand much how to use those two libraries, i've tried several things but none of them work
B4X:
try {
mCamera.setPreviewCallbackWithBuffer(callback);
for (int i = 0; i < 16; i++)
mCamera.addCallbackBuffer(new byte[1280*480*3/2]);
mCamera.startPreview();
} catch (IOException e) {
e.printStackTrace();
}
I am able to create the callback Object like this
B4X:
Dim callback As Object
Dim r2 As JavaObject
r2 = cam
callback = r2.InitializeStatic("android.hardware.Camera$PreviewCallback")
Thanks in advanced for any help or suggestions.
Walter