Skip to content

Instantly share code, notes, and snippets.

@rsicarelli
Created November 7, 2016 12:52
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 rsicarelli/5e059016bc6ed8a1f9a358ba5fb0d320 to your computer and use it in GitHub Desktop.
Save rsicarelli/5e059016bc6ed8a1f9a358ba5fb0d320 to your computer and use it in GitHub Desktop.
public void navigateToCamera(Uri photoLocalUri, int requestImageCapture) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoLocalUri);
activity.startActivityForResult(intent, requestImageCapture);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment