Created
August 8, 2013 20:14
-
-
Save choiboi/6188260 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) { | |
... | |
else if (requestCode == CAMERA_WITH_FILEPATH) { | |
// Get the image from the filepath you specified when you | |
// started the camera intent. | |
String filepath = getOutputLink(TEMP_JPEG_FILENAME); | |
Bitmap img = BitmapFactory.decodeFile(filepath); | |
mImage.setImageBitmap(img); | |
Toast.makeText(this, "Image is saved in: " + filepath, Toast.LENGTH_SHORT).show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment