Skip to content

Instantly share code, notes, and snippets.

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 choiboi/6188006 to your computer and use it in GitHub Desktop.
Save choiboi/6188006 to your computer and use it in GitHub Desktop.
if (resultCode == RESULT_OK) {
if (requestCode == CAMERA_NO_FILEPATH) {
// Get the image from intent data.
Bundle bundle = data.getExtras();
// This Bundle object will contain the Bitmap image,
// so no Bitmap decoding will be required.
Bitmap img = (Bitmap) bundle.get("data");
mImage.setImageBitmap(img);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment