Last active
December 20, 2015 20:08
-
-
Save choiboi/6188006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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