Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final HandlerThread handlerThread = new HandlerThread("PixelCopier");
- handlerThread.start();
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- PixelCopy.request(lSurface, bitmap, (copyResult) -> {
- if (copyResult == PixelCopy.SUCCESS) {
- saveImage(bitmap);
- } else {
- }
- handlerThread.quitSafely();
- }, new Handler());
- }
- Actions
Add Comment
Please, Sign In to add comment