public void onActivityResult(int requestCode, int resultCode, Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);
switch (requestCode) {
case PICK_FROM_CAMERA:
if (resultCode == Activity.RESULT_OK) {
Bitmap bitmapImage = (Bitmap) intent.getExtras().get("data");
//Redirectin to your second activty passing Bitmap Object
Intent intent = new Intent(getApplicationContext(),
SecondActivity.class);
intent.putExtra("bitmap", bitmapImage);
startActivity(intent);
}
}
在 SecondActivity.java
检索该位图
Bitmap bitImage=getIntent().getParcelableExtra("bitmap");