Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 JNI 方式composer -> captureScreen(...)来捕获最终的surfaceflinger 组合屏幕,就像源代码中的这个示例一样。
composer -> captureScreen(...)
并在 android 4.1 上构建成功,但在运行时发生错误:captureScreen(...)returnserr = 1和heap = null.
captureScreen(...)
err = 1
heap = null
我用谷歌搜索这个链接是同样的失败,仍然没有答案。
好的!我得到了答案...原生代码中的err = 1手段PERMISSION_DENIED = 1,根本原因是在android 4.0截图后考虑APP的权限,这里有中文解释,这里是工作的细节
PERMISSION_DENIED = 1
谢谢!BR