i dont know how to pass bitmap ... but what you can do is have a public static bitmap in act A and access it from act B .. hopefully this should solve the purpose ..
On Mon, Jun 7, 2010 at 11:54 AM, mike <[email protected]> wrote: > hi guys, > > i have a Bitmap image and i want to forward the bitmap to another > activity. > > i have two activities Activity A and Activity B > > this is how i started the Activity B > > startActivityForResult(new Intent(Activity A.this, Activity B.class), > 120); > > in activity B > > private void forwardImage(Bitmap bit) { > Intent i = new Intent(MMS.this, Compose.class); > i.putExtra("MMS", bit); > setResult(RESULT_OK, i); > finish(); > } > > this is not forwarding to Activity A > but if i put a String to the intent it'll forward. > > this is how i listene to result in Activity A > > @Override > protected void onActivityResult(int requestCode, int resultCode, > Intent data) { > // TODO Auto-generated method stub > // super.onActivityResult(requestCode, resultCode, data); > switch (resultCode) { > case RESULT_OK: > Intent intent = getIntent(); > Bitmap bitmap = (Bitmap) > intent.getParcelableExtra("MMS"); > > mmsImage.setImageBitmap(bitmap); > > default: > break; > } > > } > > how can i pass a bitmap > > regards, > Mike > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

