hi guys,
is it possible to receive MMS pro grammatically in Android.
couldn't find a way to achieve this this.
i have successfully on receiving sms messages in android.
this is how i have achieved it
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
NotificationManager manager;
String[] values;
// String str = "";
if (bundle != null) {
// ---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];
String number = null;
String body = null;
String msg[] = null;
for (int i = 0; i < msgs.length; i++) {
msgs[i] = SmsMessage.createFromPdu((byte[])
pdus[i]);
number = msgs[i].getOriginatingAddress();
body =
msgs[i].getMessageBody().toString().trim();
msg = new String[] { number, body };
}
}
like this is there a way to receive MMS??
your help is greatly appreciated...
regards,
Mike
--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en