【发布时间】:2012-09-15 16:08:09
【问题描述】:
我正在开发一个应用程序,它可以帮助用户捕获 android 屏幕截图 (Android 4.x)。我知道帧缓冲区在 android ICS 上已损坏。我听说我们可以使用 ScreenShotClient 来执行此操作,如下所示。
ScreenshotClient screenshotClient = new ScreenshotClient();
screenshotClient->update();
但是,我必须导入什么库才能使用它? jni代码下可以使用吗?
【问题讨论】:
-
没有。该问题的答案没有帮助。
-
好的,你看到how-to-capture-the-android-device-screen-content的答案了吗?
-
是的,我做到了。我写了一个类似的应用程序,它使用 ScreenShotClient 截屏,但我无法构建它。找不到所需的库。
-
您找到 surfaceflinger_client/SurfaceComposerClient.h 文件了吗?
标签: android android-ndk java-native-interface screenshot