Question

I'm working with different version of Android in an application using JNI. I followed This tutorial

First of all, I manage the camera from Java, and send the data using JNI and store it into a OpenCV matrix and then manipulate the data. My application works fine in versions before 4.1.2, but in newest devices, it doesn't work.

The problem is, I set invisible the camera's preview in the UI. If the layer is not drawing, in newest versions the callback stop.

I only found a solution, but I cannot make it work. Someone know how to solve the problem of the callback preview WITHOUT show the image in the screen?

Exist another alternative, like open directly the camera in Native and use the callbacks in another thread?

Was it helpful?

Solution

This is very interesting, please try to reverse engineering this code HiddenCamera

try to grab the logic with this refs :

turn-your-android-phone-into-remote-spy

android-camera-capture-without

android-take-a-picture-without-displaying-a-preview

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top