mms

Android Programming - Send mail

╄→尐↘猪︶ㄣ 提交于 2020-01-01 01:01:33
问题 I'm using the following piece of code in Android to send a mail: Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,sendTo ); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "test" ); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "msg" ); When code is compiled and run, its asking me options of selecting applications like "GMail", "BlueTooth" etc. But I want the mail to be sent

For the current iphone version, MMS is possible or not? [duplicate]

梦想的初衷 提交于 2019-12-31 07:41:52
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is it possible to send a picture message using iPhone SDK? Hi all , does MMS way of sending images/text is possible in iPhone ?/ i have used SMS and mail for sending images im just want to make things for MMS . is there any way to send MMS programmatically?? Thanks 回答1: The MFMessageComposeViewController does not support MMS, there is no other way then to create you own MMS gateway to allow your app to support

Android MMS Broadcast receiver

▼魔方 西西 提交于 2019-12-30 07:09:28
问题 I am working on a MMS broadcast receiver. It already starts when receiving a MMS but I dont know how to capture / parse the contents of the mms like it is done with sms in this example: import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import android.util.Log; public class SMSBroadcastReceiver extends BroadcastReceiver { private static final String SMS_RECEIVED = "android

How can my app send MMS with a photo?

旧城冷巷雨未停 提交于 2019-12-30 06:21:12
问题 I would like to compose a message from my app which I can include a photo, for example: I entered my album in the IPhone and open a photo I can click on option and then on MMS tab and the photo will be added in a message and I can send it then to a whatever contact I want. what I want is that when I click on a button on my app, a message window will open with a photo from my resources in the XCode, how can I do that? 回答1: This is not possible with the current MessageUI API. The

Save/Create MMS in inbox Android

别来无恙 提交于 2019-12-29 04:35:23
问题 I am working on an Application which needs to be able to Save/Create a new MMS in inbox or Sent folders but I cant figure out the way. I tried the following code but it gave me exception: ContentValues values = new ContentValues(); values.put("address", "xxxxxxxxxxx"); values.put("body", "body 3"); values.put("read", "0"); getContentResolver().insert(Uri.parse("content://mms/inbox"), values); And the Exception is: ERROR/Database(118): Error inserting read=0 body=body 3 msg_box=1 date

MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

浪子不回头ぞ 提交于 2019-12-28 10:05:07
问题 I want to attach an image to a MMS, on iOS7. I wrote following code: MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; NSData *imgData = [NSData dataWithContentsOfFile:@"blablabla"]; BOOL didAttachImage = [messageController addAttachmentData:imgData typeIdentifier:@"public.data" filename:@"image"]; if (didAttachImage) { // Present message view controller on screen [self presentViewController

I am helping develop a SMS/MMS messaging app for android but we cant send mms from Sprint and Verizon?

微笑、不失礼 提交于 2019-12-25 08:44:48
问题 Is there some secret sauce to third party sms/mms messaging apps? Our app downloads and Installs fine, sends sms fine, receives sms fine. The app also receives mms fine, but when trying to send MMS from either a Sprint or Verizon phone message always fails (quickly). We have tried many different APNs but I am beginning to think that maybe these APNs are only for GSM and not CDMA networks? Sprint does not allow editing to apns so I cant find APN settings except on one phone. Here is the most

Why doesn't this code attach an image to MMS message?

做~自己de王妃 提交于 2019-12-25 02:09:32
问题 The code is pretty basic share_button.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Uri image = Uri.parse("android.resource://com.mypac.app/" + imageToSend); Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpeg"); share.putExtra(Intent.EXTRA_STREAM, image); startActivity(Intent.createChooser(share, "Share with")); } }); The variable imageToSend is int - ID of the image in /drawables directory. In the share dialog, I can see the Messaging

SmsManager, send attachment in sms

◇◆丶佛笑我妖孽 提交于 2019-12-24 21:50:06
问题 How do I add an "attachment" into my SmsManager object when I'm trying tro send an sms? My current function for sending a normal sms is: public void send() { SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(this.number, null, this.message, null, null); } I have looked a little bit at the sendDataMessage() but don't really understand it.. any help is appreciated. Thanks. EDIT I don't want to use Intent for this. I have a List with Bitmap images that I want to send via an SMS/MMS.

MMS sending connectivity issues when wifi is active (Android)

淺唱寂寞╮ 提交于 2019-12-24 18:52:34
问题 I'm working on an Android application that will send MMS internally without using the native messaging app. I've been using the code from the native app that I found at https://android.googlesource.com as a guide and have managed to create a working prototype. However, I'm having a slight issue when trying to make the HTTP_Post when the phone is connected to Wifi. In the code snippet below I request the MMS network feature and wait for the android.net.conn.CONNECTIVITY_CHANGE intent