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
4
votes
0 answers

On Receive SMS BroadCast Receiver works only on android 2.3.3

This is my Java class for SMS Receive. It works perfectly on Android 2.3.3 Emulator when it received SMS, It toasts the sms message Receivers number and then the message content. public class IncomingSms extends BroadcastReceiver { public…
Chamith Chathuka
  • 605
  • 1
  • 6
  • 18
4
votes
0 answers

Send SMS using SmsManager in android fail in some device

I try to send message using SmsManager in android i use this code in my application it work fine only some of the device it is not working. i just make one class for send message public class Sms { public static final String TAG = "Sms"; …
Sagar Devani
  • 242
  • 1
  • 3
  • 10
4
votes
1 answer

Pending Intents for sending SMS not working well while sending many messages

I am Developing an App , In which I send SMS and I need to find if It's delivered or not. Every thing seems to be well if I send A message to a person. But In some situations I got wrong Information , for example , First I send A message to number…
Arashdn
  • 691
  • 3
  • 11
  • 25
4
votes
0 answers

Send SMS with out saving it in sent item in kitkat

I am developing an application which needs to send SMS. I am using SmsManager.SendTextMessage and SmsManager.sendMultipartTextMessage , Both of them are working well , the main problem is sent message will be saved on sent items(only in Kitkat , the…
Arashdn
  • 691
  • 3
  • 11
  • 25
4
votes
1 answer

Android - Sent SMS message does not show in native Messages app

We have an app that detects and receives incoming SMS messages, and then auto-responds to those messages. All of this is working great.. however there is one quirk we have noticed. On my Android phone (LG L70), it works fine to show the…
svguerin3
  • 2,433
  • 3
  • 29
  • 53
4
votes
1 answer

SMS not received...only in certain cases...Carrier/Country?

I have a technical issue that I can't resolve because the problem only happens on the other side of the planet that I'm on. So I am hoping someone with a lot more Experience with these technologies can suggest an alternate approach or path to take…
4
votes
3 answers

SMSManager not working on Samsung Galaxy S3 LTE

I created simple code to send SMS which is working on Xperia U and QMobile (local brand). But it is not working on Samsung Galaxy S3 LTE They code is import android.telephony.SmsManager; SmsManager sms = SmsManager.getDefault(); …
Adil Bhatty
  • 17,190
  • 34
  • 81
  • 118
4
votes
0 answers

unwanted confirmation sms sent by provider in Austria

I have a strange problem with sending SMS. My app just uses SMSManager like recommended everywhere: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI); While this works perfectly…
user387184
  • 10,953
  • 12
  • 77
  • 147
3
votes
1 answer

Couldn't send SMS from Activity , says "could not start conversation"

This code was working, it opens the default SMS app and message appears in textbox , ready to enter number and send, But now this code doesn't work from Above marshmallow. but now It does not work if the default app is Messaging Uri uri =…
3
votes
2 answers

Android - how to make my app default sms app programatically

I am developing an sms blocking app. Which is working fine up to Jelly-Bean. And its not working from Kitkat to Marshmallow. I searched on google and everyone recommending to take permission from user to make it default sms app of this phone by…
AGM Tazim
  • 2,213
  • 3
  • 16
  • 25
3
votes
3 answers

Permission Dialog not Showing Up Android 6.0.1 (Marshmallow)

if (ActivityCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED) { try { Cursor temp = db.rawQuery("Select name from profile;", null); temp.moveToFirst(); …
3
votes
1 answer

Do I need to write into SMS Provider when set as default SMS app on Android?

I read this blog and this doc about default SMS app behavior on Android KitKat+. Both say that: ...if and only if an app is not selected as the default SMS app, the system automatically writes messages sent using this method to the SMS Provider…
michnovka
  • 2,880
  • 3
  • 26
  • 58
3
votes
0 answers

Trying to fetch SMS from specific sender

I am trying fetch SMS message from specific sender but the problem is that sender has different codes something like "VM-Citi" or "AD-Citi". I would like to find out is it possible to query SMS only the sender has the keyword something like if it…
Sanjana Nair
  • 2,663
  • 6
  • 26
  • 44
3
votes
1 answer

Android 4.4 set default sms application without user confirmation

Is it possible to change default sms application on Android 4.4 without user knowledge? I'm trying to do it on a ROOTED Galaxy S5 using reflection and invoking system methods, so here is what I done so far: Created small app that implements all…
Test User
  • 125
  • 2
  • 12
3
votes
2 answers

auto send sms when gps location is available

i'm developing an app to send user location via sms after a fixed time and if the phone restarts the app should starts automatically in the background without any launcher activity. I have quiet accomplished my task I'm only facing problem in…
user3584316
  • 61
  • 10
1 2
3
34 35