Skip to content

Instantly share code, notes, and snippets.

@eric-romero
Created June 17, 2019 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-romero/d659537d05df01be5d2a13b0e1000e41 to your computer and use it in GitHub Desktop.
Save eric-romero/d659537d05df01be5d2a13b0e1000e41 to your computer and use it in GitHub Desktop.
// Flag the current activity to skip background check upon pause
activity.getIntent().putExtra(BackgroundJobService.SKIP_BG_CHECK, true);
// Launch the Camera app to take a picture
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
activity.startActivityForResult(intent, ActivityRequests.TAKE_PICTURE_REQUEST);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment