Questions tagged [smsmanager]

Manages SMS operations in Android apps. Functionality includes sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault()

Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault().

This class was deprecated in API level 4. Replaced by android.telephony.SmsManager that supports both GSM and CDMA.

Visit Android Developer for latest information

516 questions
2
votes
1 answer
2
votes
0 answers

Android - Check for active network on Dual SIMs

I want to send sms using Dual Sim Mobile, make sim selection option, while sending sms. I have vefiried this link fully: Android : Check whether the phone is dual SIM this question is based on this question only. thats why could not type the same…
harikrishnan
  • 1,985
  • 4
  • 32
  • 63
2
votes
2 answers

How to send more than 160 characters SMS in android?

I have some code to send SMS from my application but this code only send 160 characters and cannot send more than 160. This is my code : protected void sendMessage(String message){ String phoneNumber = "xxxx"; try { …
Nicholas
  • 119
  • 2
  • 17
2
votes
2 answers

Write received message to SMS provider ( API level 19+ )

I am creating an SMS manager for KitKat and later version. I have implemented all the receivers as directed in the official doc by android. I have to receive the SMS SMS_DELIVER broadcast receiver and read it and then have to write to the SMS…
Sagar Nayak
  • 2,138
  • 2
  • 19
  • 52
2
votes
1 answer

How to check whether sms in inbox is read or unread

I have fetched all message from a particular number from inbox by the following code . public void refreshSmsInbox() { ContentResolver contentResolver = getContentResolver(); Cursor smsInboxCursor = contentResolver.query( …
osimer pothe
  • 2,827
  • 14
  • 54
  • 92
2
votes
0 answers

React to systemdialog SmsManager

My application sends a text like this: SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(NUMBER, null, "sms message", null, null); before sending the user is presented a system-dialog that he has to confirm. "App would…
AKroell
  • 622
  • 4
  • 18
2
votes
2 answers

How to read particular number of one month messages android?

I want to read the messages of particular number in a particular time. For example i want to read the before one month messages of "+91934345432".( For example today aug 6th so i need the messages in between july 6th to aug 6th. ) my code:…
kartheeki j
  • 2,206
  • 5
  • 27
  • 51
2
votes
1 answer

SMS Manager is sending more than one sms

private void sendSMS(String phoneNumber, String message) { PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0); SmsManager sms = SmsManager.getDefault(); …
korek
  • 113
  • 11
2
votes
1 answer

android: how often can I send SMS message

Sending SMS by the: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, sentPI, null); is buffered by the system? Can I send next SMS in the same way inmediately, or I must wait for: PendingIntent sentPI =…
theWalker
  • 2,022
  • 2
  • 18
  • 27
2
votes
1 answer

How to send sms directly using SmsManager in dual sim android phones?

I had problems to get data about Dual Sim android phones, but it was possible through reflection of specific implementations of Telephonymanager class by each manufacturer. Now that I have the Dual Sim data I want to send a message through a…
luizlouro
  • 61
  • 1
  • 6
2
votes
1 answer

Pass SMS from BroadcastReceiver to Activity

I am creating an SMS app. I can send messages fine, however I cannot get it to receive. I have successfully implemented the functionality to allow the app to be selected as the default SMS application on the device. The problem I have is that I…
2
votes
2 answers

Android SMS Manager delivery report and sent report not received

I implemented so that my Service will run and retrieve SMS from server and send in a thread, but my problem now is that the Sent and Delivered report is not calling my PI. Below is my code, any expert can help me to pinpoint where did I do…
TPG
  • 2,811
  • 1
  • 31
  • 52
2
votes
0 answers

Android SmsManager sendTextMessage doesn't work - pulling xml featureset.xml from wrong location?

Been racking my brain on this for a while and I need some other opinions/possible diagnoses. I have a feature in my app in which a user sends an sms to herself in order to verify her phone number (I know there are better solutions out there, but…
ethan123
  • 1,084
  • 2
  • 14
  • 26
2
votes
1 answer

PendingIntent for SMS delivery not getting fired on Andorid 4.4 and higher versions. It works fine Android 4.3

This is the code I am using in my android app's service. Android 4.3: it works perfectly fine and I am able to get both the pending intents. Android 4.4+: it does send out SMS, I am able to get "SMS SENT" broadcast message, but not getting the "SMS…
user1720839
  • 91
  • 2
  • 8
2
votes
1 answer

SMS receive only my android Apps , others will not receive

I want to create an android application, which is received SMS only , not receive native Message apps . But I receive SMS , and native Message apps will receive . My coce:.. SMSreceiver.java public class SMSreceiver extends BroadcastReceiver{ …
Sams
  • 102
  • 9