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. Windows Live Messenger and other services not appearing in the IM Client?

Hi!

I just recieved the Android Development Phone 1 (The G1). However, the
IM client only shows Gmail and not the others.. Is there a way to get
them, as I would like to see how the IM client handles it

Kind Regards

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

2. XMPP through Smack

After reading many previous posts about XMPP, I am still not sure if
anyone actually got XMPP to work for the official SDK 1.0.

I had trouble receiving any message.   From the logs, I saw this:

12-27 19:43:14.866: WARN/System.err(225):
java.security.KeyStoreException: KeyStore jks implementation not found


This origin is from Smack's PacketReader and I read a post about
installing the "cacerts" fiel as follows:

String javaHome =  System.getProperty("java.home");
StringBuffer buffer = new StringBuffer();
buffer.append(javaHome).append(File.separator).append("lib");
buffer.append(File.separator).append("security");
buffer.append(File.separator).append("cacerts");
config.setTruststorePath(buffer.toString());
config.setTruststoreType("jks");
config.setTruststorePassword("changeit");


This didn't seem to solve the problem on Windows while it could help
those on Linux.    Can anyone provide any ideas to proceed?

Thanks.





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

3. ddms error: Cannot connect to adb

4. Animations Persistance

5. HashMap via http tunneling

6. T-Mobile G1: How to properly resume View's focus when Activity resumed from screen black-out?

7. Implementing Parcelable with Eclipse - "MyClass.java is in the way of MyClass.aidl"