Skip to content

Instantly share code, notes, and snippets.

@masarugen
Created August 14, 2012 08:23
Show Gist options
  • Save masarugen/3347514 to your computer and use it in GitHub Desktop.
Save masarugen/3347514 to your computer and use it in GitHub Desktop.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == IMAGE_CAPTURE) {
Log.d(TAG, "onActivityResult");
if (resultCode == RESULT_OK) {
Bundle bundle = data.getExtras();
Bitmap bitmap = (Bitmap) bundle.getParcelable("data");
ImageView imageView = (ImageView) findViewById(R.id.photo_image);
imageView.setImageBitmap(bitmap);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment