tags:

views:

296

answers:

2

Hi,

I have this code:

 Intent intent = new Intent();
 intent.setAction(Intent.ACTION_SEND);
 startActivity(intent);

which successfully launches an Messaging App on android.

But how can i attach a Bitmap object when launching the intent?

I have read http://developer.android.com/reference/android/content/Intent.html, the closet thing to what i need is EXTRA_STREAM, like this: intent2.putExtra(Intent.EXTRA_STREAM, _uri);

but my case, I have a reference of Bitmap object, not an URI of an Bitmap.

Please tell me what can I do to attach a Bitmap object?

Thank you.

A: 

I'm having kind of the same problem. I tried this:

intent.putExtra("image", image);

But when I ran the program, it couldn't launch the new activity. It looked like the system was stuck at this point. The UI was not rendered but a black screen instead. I waited for a while and it asked me whether I wanted to force quit.

In short, how to we pass Bitmap data between activities?

Thanks

Po
A: 

Bump Bump Bump .

Bumper