Sending a bitmap as a MMS

by karthikr » Sun, 02 Aug 2009 19:51:26 GMT


Sponsored Links
 Hi Guys,

Im trying to send a bitmap through mms by the following code,

But what i can see is that the messaging client opens up only with the
text and the bitmap not attached.

Can you please guide me as what im doing wrong here?

Intent sendIntentMMS = new Intent(Intent.ACTION_SEND);
sendIntentMMS.putExtra("sms_body", "some text");
sendIntentMMS.putExtra(Intent.EXTRA_STREAM, Images.Media.insertImage
(getContentResolver(),  mBitmap, "title", null));
sendIntentMMS.setType("image/png");
startActivity(sendIntentMMS);

Thanks in advance,
R.Karthik
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. HF Bluetooth Device connection.

Hello ,

During our testing with one of Android Phone,we noticed ,after we Pair
and Connect a Bluetooth Stereo HF device to the phone,if we power
cycle the HF device,the phone does not connect back both HF and A2DP
profiles ,we noticed,most of the time it is only A2DP.

we are trying to analyze the code to check if thatst the default
behavior,meanwhile would you guys be able to help!

1) Does the phone just allow A2DP only ,after the HF device power
cycles (the HF device does attempt to connect both HFP and a2DP) ?

2) Would y'all know of any official document from Android which would
help us clarify/refer for Bluetooth usecases such as the one mentioned
above?

Thanks&Regards,
Vishy

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. About Interface of stopRecord and stopPreview in mediarecord?

preview and recording interface of Camera  has been separated.

Camera Interface
frameworks/base/include/ui/Camera.

mediarecord Interface
frameworks/base/include/media/mediarecorder.h

mediarecord only have 1 stop() interface , it means stop recording and
preview.

If we want to use only stop recording but not preview, A simple method
is stop preview then re-start it.
Especially, for using overlay , it is not a good method.


--~--~---------~--~----~------------~-------~--~----~

3. Reading transmitter signal strength

4. Scroll and drag a TileView widget around by finger / touch

5. Is there a way to get a list about what was build into the system.img or not?

6. Scroll and drag a TileView widget around by finger / touch

7. looking for developer to write an image application