Android Camera2 Executable Failed To Get Frames
I have one Camera2 NDK code to open the camera and get images. The code work fine via Android Application/Service, but if I compile and run it as executable the camera opened but I
Solution 1:
I have not seen your code. From your description, you have done everything right. If you add the following, it should work.
#include <binder/ProcessState.h>
...
main()
{
...
android::ProcessState::self()->startThreadPool();
...
Camera open, AImageReader_new, etc ...
...
Close Camera
...
}
Also add libbinder to Android.mk LOCAL_SHARED_LIBRARIES.
Post a Comment for "Android Camera2 Executable Failed To Get Frames"