Guest User

Untitled

a guest
Apr 22nd, 2019
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. final HandlerThread handlerThread = new HandlerThread("PixelCopier");
  2.             handlerThread.start();
  3.             if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
  4.                 PixelCopy.request(lSurface, bitmap, (copyResult) -> {
  5.                     if (copyResult == PixelCopy.SUCCESS) {
  6.                         saveImage(bitmap);
  7.                     } else {
  8.                     }
  9.                     handlerThread.quitSafely();
  10.                 }, new Handler());
  11.             }
  12. Actions
Add Comment
Please, Sign In to add comment