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/6188260 to your computer and use it in GitHub Desktop.
Save choiboi/6188260 to your computer and use it in GitHub Desktop.
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