My bad, I found the problem. I was setting the result in another
thread and it did not catch the bundle. I manage to pass a bitmap
between 2 activites.
On Mar 27, 8:59 pm, "Carl H." <[EMAIL PROTECTED]> wrote:
> it does not seem to work. I have the following:
>
> Bundlebundle= newBundle();
> bundle.putParcelable("bitmap", pic);
>
> Parcelable p =bundle.getParcelable("bitmap");
>
> Log.i("MyLog",p.toString());
> Bitmapw = (Bitmap)p;
>
> Log.i("MyLog","test " + w.toString());
>
> setResult(Activity.RESULT_OK, null,bundle);
>
> And I can get thebitmapback 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
-~----------~----~----~----~------~----~------~--~---