Questions tagged [android-sms]

Working with SMS in Android. If asking about SMS in general, use sms tag.

106 questions
0
votes
0 answers

How to create intent that emulate incoming sms

Right now I can receive sms with the next code: override fun onReceive(c: Context, i: Intent) { val bundle = intent.extras if (bundle != null && intent.action == SMS_RECEIVED) { var currentMessage: SmsMessage …
Andriy Antonov
  • 1,360
  • 2
  • 15
  • 29
0
votes
2 answers

SMS not sending from some dual sim device android programmatically

I am stuck for a long time and can't solve it. Please help... I am trying to send sms programmatically from android device. I can send successfully from many devices but can't from some Samsung dual sim devices with android api level >=22. For api…
Exigente05
  • 2,161
  • 3
  • 22
  • 42
0
votes
1 answer

Permission Denial: broadcasting Intent act=android.provider.Telephony.SMS_RECEIVED

My app reads incoming SMS. I have implemented receiver, added permission and receiver in Manifest but when SMS is received I get following message in logcat. 12-29 13:25:00.081 2030-2044/? W/BroadcastQueue: Permission Denial: broadcasting Intent…
0
votes
0 answers

Reading incoming sms crashes on LG P970

Recently i am getting full of crash reports from one phone: LG-P970. What i am doing is reading sms when the sms is received. Nothing unusual. And my codes working on other all phones. Android – Listen For Incoming SMS Messages Like in linked…
Eren Utku
  • 1,731
  • 1
  • 18
  • 27
0
votes
0 answers

Send SMS to multiple phone number when messenger is set as default sms app in android

I have implemented the ability to send message in my app and it is working well. But if the user is using another sms app like messenger as their default sms app then, I can't send message to multiple recipients. If multiple phone number is…
0
votes
0 answers

Encapsulating SMS sending and receiving in a class

I want to create a class which would take a phone number, send a SMS to that number and wait for answer from that specific number. Originally I planned something like this: public class SmartSocket extends BroadcastReceiver { private String…
Janeks Bergs
  • 224
  • 3
  • 13
0
votes
1 answer

android - How to combine two sms with smslistener

I've a sms listener that read sms from a certain number . It reads the sms without any problem but there is a bug here , if the message body is very big and it goes into 2 messages, the listener only detect the first one and cannot doesn't…
navid abutorab
  • 189
  • 1
  • 2
  • 9
-1
votes
1 answer

how to fix sms permission error android studio?

in this project, I want to send a location message to the destination number. I have added SEND_SMS in Manifest, I want this application to send a message when I press the button. but there is a problem in the code. this is error in logcat…
-1
votes
2 answers

SMS Messages of a particular number not showing up on other devices Android

I am using the Telephony.Sms library to load in received and sent sms messages for the app I am working on. When I set the query selection to null (the third item in the query), it will show all the sent and received sms messages on the different…
-1
votes
2 answers

Update ListView every second with Handler not working

In my application where the app receives a new sms message, I want the listview to update it it immediately with the new message shown in the listview. I tried using the example code of the broadcast receiver code but it didn't work, so I'm now…
-1
votes
1 answer

Send SMS method always fails

I have created a method to send an sms. So, it always fails. I have used uses-permission SEND_SMS but it keeps shows the error> DO you have any idea ? Log.i("Send SMS", ""); String phoneNo = "XXXXXXXXXXXX"; …
ama989
  • 463
  • 1
  • 5
  • 23
-1
votes
1 answer

Differentiate receive message and sent message in android

i am developing an SMS app. i want to differentiate the sent message and received message for a particular number. for example you can see in SMS app that sent message displayed in right side and received message displayed in left side. How to do…
Happy
  • 1,031
  • 10
  • 26
-1
votes
2 answers

Cannot read SMS in reading mode Android 5.0?

I have an SMS incoming phone number 123456. I want to use an Intent to open the SMS message of the incoming phone number in the service. I tried two ways, but they give unsatisfied results First way: Intent smsIntent = new…
-1
votes
1 answer

Cannot get sent sms (text messages) from device

I would like to get all the sent sms (text messages) from a device. I can get all of them from the inbox with: public List getAllInboxSMS(Context ctx) { List inboxSMSList = new ArrayList<>(); try { Uri uriSms =…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
-2
votes
1 answer

Android: Listening and Receiving SMS Messages after phone is rebooted

I'd like to ask a question about how Android app behaves after the OS has been restarted. I have a messaging app which needs to listen to SMS messages (using the method in this post) Assuming that the app is supporting Direct Book (Android 7.0 and…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84