mms

How to attach a Bitmap when launching ACTION_SEND intent

匆匆过客 提交于 2019-11-27 18:50:35
I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); Which will successfully launch a 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 a Bitmap. Please tell me what to do to attach a Bitmap object? Sagar Maiyad String pathofBmp = Images.Media

Detecting MMS messages on Android

徘徊边缘 提交于 2019-11-27 13:20:13
I was searching through the internet for this topic and couldn't find any satisfying answer... I'm trying to detect MMS messages (incoming at least for start). And I've decided to go through the way of detecting changes in the contents. I've downloaded Android codes and made sure that I'm using correct content provider: "content://mms" (in android.provider.Telephony.Mms class) and I'm using all needed permissions (from Mms application) I've come up with a sample application that detects incoming MMS messages, how ever it does not detect them. here is the application: package com.kolomiyets

How to attach Image with message via iPhone application?

佐手、 提交于 2019-11-27 11:59:11
I want to send message with image data. So I used MFMessageComposeViewController . But that controller provide only SMS service. So I used UIPasteBoard attached an image data. But It doesn't work, either. There are no "Paste" button created when typing messages. Attaching image at UIPasteBoard was clearly success. I think using MFMessageComposeViewController doesn't solve my problem. How can I accomplish my goal? Joris Kluivers This is not possible with the current MessageUI API: the MSMessageComposeViewController doesn't accept attachments like the MFMailComposeViewController does. The only

Cannot send MMS?

霸气de小男生 提交于 2019-11-27 08:40:48
问题 I've been struggling to send an image file by MMS for the last two days. The crazy thing is, there are no crashes! This code is in my service: static Settings settings; public static void sendPicture(final byte [] data){ final Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length); new Thread(new Runnable() { @Override public void run() { ApnUtils.initDefaultApns(z, new ApnUtils.OnApnFinishedListener() { //Z is just an instance variable that stores context @Override public void

Send MMS programmatically

泄露秘密 提交于 2019-11-27 08:30:38
I want to send an MMS programmatically I used the following code for it Intent sendIntent1 = new Intent(Intent.ACTION_SEND); try { sendIntent1.setType("text/x-vcard"); sendIntent1.putExtra("address","0475223091"); sendIntent1.putExtra("sms_body","hello.."); sendIntent1.putExtra(Intent.EXTRA_STREAM, Uri.parse(vcfFile.toURL().toString())); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } startActivity(sendIntent1); The problem is it directing to the compose message page and requires manually send the SMS and i dont want so without any notification it

Android SDK MMS

帅比萌擦擦* 提交于 2019-11-27 07:43:27
Does anyone know how to programmatically send a MMS via the Android SDK? Any version of the SDK will do, just need to know where to get started. I know how to send / receive SMS, I now need to add a picture to the message before sending. This worked for me. Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra("sms_body", "some text"); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url)); sendIntent.setType("image/png"); The url being passed to the Uri.parse method should be of the form used to access the media store such as content://media/external/images/media/23. From

Receive MMS messages in Android KitKat

▼魔方 西西 提交于 2019-11-26 22:12:23
So this video Android 4.4 SMS APIs from #DevBytes explains the recent changes to the SMS APIs in KitKat. They also provide a link with a sample project. http://goo.gl/uQ3Nih They suggest that you handle the receive of an MMS in a service. Which all looks fine, except they neglect to mention the most undocumented piece. How to actually handle an incoming MMS. Here is the sample from the project https://gist.github.com/lawloretienne/8970938 I have tried to "handle the MMS" https://gist.github.com/lawloretienne/8971050 I can get the extras from the intent but the only meaningful thing that I can

SMS missing from content provider results on Android Marshmallow

╄→гoц情女王★ 提交于 2019-11-26 21:54:29
问题 Some text messages are missing and never show in the content://sms provider URI since the Samsung S7 came out. I have noticed this between multiple Samsung devices (S6 and/or S7) that are on the same carrier (in this case T-Mobile) but may not be limited to. These text messages are showing in the default stock messaging app, but I cannot find how to access them. Keep in mind that I receive 97% of text messages just fine through that content provider, but that last 3% eludes me. Uri uri = Uri

how to send MMS from iPhone app

☆樱花仙子☆ 提交于 2019-11-26 19:38:53
问题 In my new iOS Project I'd like the end user to be able to MMS text and/or images (from TextField) in a UIButton Action . I've seen similar apps that has this functionality (with text, haven't seen one with images yet). I have search in google but could not find how to do this, any help much appreciated 回答1: This will work fine MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard

How to attach a Bitmap when launching ACTION_SEND intent

自古美人都是妖i 提交于 2019-11-26 19:37:51
问题 I have this code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); startActivity(intent); Which will successfully launch a 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 a Bitmap. Please