sms

content://sms/sent/ not working

旧时模样 提交于 2019-12-18 16:49:36
问题 This is the SMS observer code. I need to check only sent sms. When I use the content://sms/ I get the result. But why don't I get results when I use the content://sms/sent/ ? I'm using Android 2.1. import android.app.Service; import android.content.ContentResolver; import android.content.Intent; import android.database.ContentObserver; import android.database.Cursor; import android.net.Uri; import android.os.Handler; import android.os.IBinder; import android.util.Log; public class

content://sms/sent/ not working

ε祈祈猫儿з 提交于 2019-12-18 16:49:11
问题 This is the SMS observer code. I need to check only sent sms. When I use the content://sms/ I get the result. But why don't I get results when I use the content://sms/sent/ ? I'm using Android 2.1. import android.app.Service; import android.content.ContentResolver; import android.content.Intent; import android.database.ContentObserver; import android.database.Cursor; import android.net.Uri; import android.os.Handler; import android.os.IBinder; import android.util.Log; public class

how to get the smsc number of a phone in android?

我与影子孤独终老i 提交于 2019-12-18 15:54:16
问题 I am trying to get the SMS center number of a phone programmatically in android. Is that possible ? I have tried searching but found nothing concrete. Can anyone help ? Thanks - ahsan :) 回答1: Dial this number: * # * # 4 6 3 6 * # * # go to phone information and at the bottom you will see the SMSC field, press refresh and there you go 回答2: If you're looking for Manually changing SMS Center number. I got a USSD method to change SMS center number 回答3: Use an app called advance signal status. Go

Override default android messaging application

旧城冷巷雨未停 提交于 2019-12-18 13:38:49
问题 I want to override the default android messaging application. If I receive a sms or mms I want to send that to email but i don't want any notification on phone. So basically I want to replace the default messaging application. How can I make my application the default one that receive the sms? Thanks a lot. That is exactly what I need. But I have one more problem. I used the receiver to get the message ... but I don't know how to find the message in the phone and mark it as read. public void

Why do I get NullPointerException when sending an SMS on an HTC Desire, or what is SubmitPdu?

只愿长相守 提交于 2019-12-18 13:28:38
问题 So I get this stack trace: java.lang.NullPointerException at android.telephony.SmsMessage$SubmitPdu.<init>(SmsMessage.java:132) at android.telephony.SmsMessage.getSubmitPdu(SmsMessage.java:551) at android.telephony.SmsManager.sendTextMessage(SmsManager.java:228) at android.telephony.SmsManager.sendTextMessage(SmsManager.java:107) at com.emergency.button.SMSSender.safeSendSMS(SMSSender.java:91) at com.emergency.button.EmergencyActivity$EmergencyThread .sendSMS(EmergencyActivity.java:294) at

Android 8 requires READ_PHONE_STATE when calling SmsManager.sendTextMessage()

蓝咒 提交于 2019-12-18 11:47:19
问题 My application can't send sms on new android 8 update. I get error that I don't have READ_PHONE_STATE permission. java.lang.SecurityException: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1942) at android.os.Parcel.readException(Parcel.java:1888) at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:789) at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:329) at

Creating a SMS Application in Android?

帅比萌擦擦* 提交于 2019-12-18 10:29:43
问题 I am creating an SMS Application to send and receive SMS. I am able to send SMS using the following code: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null,message , pi, null); I would like to receive SMS and put them in my own inbox. How do I create this inbox? I would like it to work the same way as a normal inbox. Bundle bundle = intent.getExtras(); Object[] pdus = (Object[]) bundle.get("pdus"); SmsMessage[] messages = new SmsMessage[pdus.length]; for (int i =

Free SMS API in web application [closed]

依然范特西╮ 提交于 2019-12-18 10:11:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone know of any SMS APIs that I can use in my web application to send SMS messages to users? 回答1: Most mobile providers

Free SMS API in web application [closed]

余生颓废 提交于 2019-12-18 10:10:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone know of any SMS APIs that I can use in my web application to send SMS messages to users? 回答1: Most mobile providers

How to send and receive SMS from android app? [closed]

耗尽温柔 提交于 2019-12-18 10:06:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I want to add sms sending feature in my app and also want option in which user can select the contacts from the contact list directly from the application. Is there way that contact list can be integrated with my application. Thanks 回答1: And here is a Tutorial Showing step by step