Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. hasSurface = false;
  2. inactivityTimer = new InactivityTimer(this);
  3.  
  4. SurfaceView surfaceView = (SurfaceView) findViewById(R.id.preview_view);
  5. SurfaceHolder surfaceHolder = surfaceView.getHolder();
  6. if (hasSurface) {
  7. initCamera(surfaceHolder);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement