Android Platform has an utility class that's used to take android screenshot . I copied "ScreenCap.cpp" in to JNI folder then build via NDK but failed. The NDK compiler didn't find needed libraries:
#include <binder/IMemory.h>
#include <gui/SurfaceComposerClient.h>
#include <SkImageEncoder.h>
#include <SkBitmap.h>
#include <SkData.h>
#include <SkStream.h>
Here is error log:
jni/ScreenCap.cpp:28:28: fatal error: SkImageEncoder.h: No such file or directory
compilation terminated.
Please tell me how to fix this.
BTW, Is there any solution to capture entire android screen programmatically? I need to capture it at least 10 times per second.
Thanks.