[android-developers] Passing Bitmap to Another Activity

2010-06-07 Thread mike
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

Re: [android-developers] Passing Bitmap to Another Activity

2010-06-07 Thread pawan nimje
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 hasitharand...@gmail.com wrote: hi guys, i have a Bitmap image and i want to forward the

Re: [android-developers] Passing Bitmap to Another Activity

2010-06-07 Thread Sean Hodges
Personally, I would avoid keeping that bitmap in memory, otherwise you are consuming a lot of resources and run the risk of hitting performance/heap space limitations. You could use openFileOutput() and getCacheDir() to store the contents of the Bitmap into a temporary file: