android-mms

Trying to read SMS/MMS on Android and geting java.lang.NullPointerException

百般思念 提交于 2019-12-25 09:22:30
问题 I'm trying to read SMS/MMS on Android, and I have followed the answer, when writing the code and try to run it on an Android OS 6.0.1 on Samsung device I got the following exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.os.Parcel.readException(Parcel.java:1626) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils

MMS in android not working using Intent.ACTION_SEND

三世轮回 提交于 2019-12-22 00:03:47
问题 How can i send an MMS in android ? My code using UI as follows : Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra("address", "5556"); intent.putExtra("sms_body", "Gudmng !!"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File("/sdcard/sky.png")); intent.putExtra(Intent.EXTRA_STREAM, uri); // imageUri set intent.setType("image/*") startActivity(intent); But still the exception in sending MMS ERROR/HierarchicalStateMachine(68): TetherMaster -

Unable to send MMS using SmsManager

孤街浪徒 提交于 2019-12-18 04:29:11
问题 I am trying to make an app that would send a MMS without using the native Android messaging app. I followed the example here. My log statements seem to be correctly printing, but I can't figure out why the MMS is not being sent. Also on a different note, I am a bit confused about where in the example the attachment (like an image) is being selected to send as MMS. I tried to import the demo into Android Studio but I ran into issues. My function for sending MMS is below: public void sendMMS()

Android save or insert MMS in content provider programmatically

血红的双手。 提交于 2019-12-11 09:44:35
问题 I am trying code described below, I got it from internet. It inserts rows in content provider(mmssms.db) properly but MMS is not shown Native Messaging App. thread_id 11 is already present in my content provider so I am using thread_id 11. public static Uri insert(Context context, String to, String subject, byte[] imageBytes) { try { Uri destUri = Uri.parse("content://mms"); // Get thread id //Set<String> recipients = new HashSet<String>(); //recipients.addAll(Arrays.asList(to)); long thread

SmsManager MMS APIs on HTC/LG

不羁岁月 提交于 2019-12-05 10:00:44
问题 I'm using the new Android lollipop APIs for sending and receiving MMS messages: SmsManager.downloadMultimediaMessage and SmsManager.sendMultimediaMessage. This works well on Nexus 4 and 5, but not working at all on HTC One & LG G3 running lollipop. Looking at the logs on the HTC device, this looks like a worrying error log: MmsServiceBroker "Failed to bind to MmsService" Has anyone managed to get the new MMS APIs working across devices? If not, any workaround? EDIT: added LG G3 to the

MMS in android not working using Intent.ACTION_SEND

时间秒杀一切 提交于 2019-12-04 20:20:41
How can i send an MMS in android ? My code using UI as follows : Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra("address", "5556"); intent.putExtra("sms_body", "Gudmng !!"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri = Uri.fromFile(new File("/sdcard/sky.png")); intent.putExtra(Intent.EXTRA_STREAM, uri); // imageUri set intent.setType("image/*") startActivity(intent); But still the exception in sending MMS ERROR/HierarchicalStateMachine(68): TetherMaster - unhandledMessage: msg.what=3 Any Help? I'm not sure what the problem with your code is, but I have used this

Find and interate all SMS/MMS messages in android

折月煮酒 提交于 2019-12-03 13:50:57
问题 First and foremost, I found this answer particularly helpful. However, it made me wonder how one goes about finding such information. I can't seem to figure out how to iterate all the messages in my inbox. My current solution uses Uri.parse("content://mms-sms/conversations") in which I give use "_id" and "ct_t". However, it seems I only find the three conversations in my phone despite having 30 msges (20 of them in the save conversation thread and the others divided between two other

How do the retrieve the date of the mms from content://mms.

淺唱寂寞╮ 提交于 2019-12-02 07:37:50
问题 I did get the information on how to retrieve the text and the image for the mms sent from this link: How to Read MMS Data in Android?. But I am not sure how to retrieve the date for the mms that was sent. I know I have to look into content://mms and not in content://mms/part. This is the Mothod to retrieve the mms text: private String getMmsText(String id) { Uri partURI = Uri.parse("content://mms/part/" + id); InputStream is = null; StringBuilder sb = new StringBuilder(); try { is =

Unable to send MMS using SmsManager

邮差的信 提交于 2019-11-29 05:21:06
I am trying to make an app that would send a MMS without using the native Android messaging app. I followed the example here . My log statements seem to be correctly printing, but I can't figure out why the MMS is not being sent. Also on a different note, I am a bit confused about where in the example the attachment (like an image) is being selected to send as MMS. I tried to import the demo into Android Studio but I ran into issues. My function for sending MMS is below: public void sendMMS() { Log.d(TAG, "sendMMS()"); Random random = new Random(); final String fileName = "send." + String