it does not seem to work. I have the following:

            Bundle bundle = new Bundle();
            bundle.putParcelable("bitmap", pic);

            Parcelable p = bundle.getParcelable("bitmap");

            Log.i("MyLog",p.toString());
            Bitmap w = (Bitmap)p;

            Log.i("MyLog","test " + w.toString());

            setResult(Activity.RESULT_OK, null, bundle);

And I can get the bitmap back with the variable w. But in the parent
activity I get a null pointer exception with the same code.

On Feb 18, 7:52 pm, "Wang,Yi" <[EMAIL PROTECTED]> wrote:
>   Question:
>    1) is theBitmapsupposed to be same in both source/target?
>    2) under what condition can compress() return false, and how to
> find
>      out why?
>    3) is there any other way to passBitmapbetween activities?
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to