Working with SMS in Android. If asking about SMS in general, use sms tag.
Questions tagged [android-sms]
106 questions
0
votes
1 answer
How is my Android phone's inbuilt SMS app so fast?
I am making an Android SMS app.
I used ContentResolver with URL = content://sms/inbox to read all SMSs from inbox.
But still my app takes a significant amount of time to load all the messages whenever I start the app on my physical device(which has…

sweetpoision
- 77
- 1
- 8
0
votes
0 answers
Android Intent.ACTION_SEND, how to pre-fill phone number in message
Using Intent.ACTION_SEND to share plain text or image. Everything works fine, the third party apps bottom sheet opens and I choose the sms application but I am not able to pass in the contact number in the intent. If I use share.putExtra("address",…

Ishita Garg
- 85
- 6
0
votes
0 answers
How to properly register a BroadcastReceiver for incoming SMS in API level 29+?
How do I properly register a BroadcastReceiver for incoming SMS in an Activity? Registering it in the manifest is not working, presumably due to Background Execution Limits introduced in API level 26.
The required permissions are in the…

Ashwani
- 1
- 2
0
votes
1 answer
Get Notified When SMS is sent or cancelled?
My app is allowed to send only one SMS per day using the default SMS sender ( which is already present in every android device ), as a result, I need to disable send SMS button once the SMS is sent.
What I am doing currently is, whenever a user…

iCantC
- 2,852
- 1
- 19
- 34
0
votes
0 answers
Prompt user to select SIM to send SMS from Application in Dual SIM phones
I have created an App. I am sending SMS using SMSManager. But the problem is that it selects default SMS Number selected for the phone. I want to display a prompt to the user in the App itself to select SIM to send SMS before sending the SMS. Please…

Samrat
- 81
- 9
0
votes
1 answer
How to send sms notification to Users through Android App
I am working on an Online Booking Android App. I want to send notification to the users who confirm their Booking on my application. I am using Firebase for my app. I exactly want the text message that we got from various other apps like…

Compile error end
- 219
- 4
- 11
0
votes
2 answers
API 28: BroadcastReceiver onReceive never executing
My onReceive is never executed. I've tried following guides online including from the official site. I'm testing on a virtual API 28 device. I understand that some of the GUI-related code might be wrong, but I should at least get a log output right?…

r .r
- 383
- 2
- 9
0
votes
1 answer
How to close SMS App and return to Activity when sms is sent by user?
I want to start SMS App using Intent to specific phone number with specific message. If I close this window it will return response and returns user to app. But how to cancel and return resultCode to my Activity on SMS Send?
I've tried that one…

martin1337
- 2,384
- 6
- 38
- 85
0
votes
1 answer
SmsManager not working. I have also included the permission in manifest
This code is not working.
I have included in manifeast.
public class MainActivity extends AppCompatActivity {
Button send;
EditText phoneNo;
EditText sms;
SmsManager smsManager;
void…

nihit kumar
- 11
- 2
0
votes
1 answer
How to fetch SMS of only one SIM in dual SIM phone?
I am working with SMS functionalities on Android. I have successfully fetched all the SMS from the phone and I want to filter those SMS by SIM 1 and SIM 2. I have checked the columns (the query to fetch SMS is returning) but can't figure out which…

kelvin
- 1,480
- 1
- 14
- 28
0
votes
1 answer
How to send sms from android app to mobile?
I have tried this code but I did not receive SMS in my phone.
Intent intent=new Intent(getApplicationContext(),MainActivity.class);
PendingIntent pi=PendingIntent.getActivity(getApplicationContext(), 0, intent,0);
//Get the…

prachi vankawala
- 1
- 1
0
votes
0 answers
Method not being executed in API 28 Android
I was using a method created to read in sms messages from a particualr number and load it into a listview with the help from this question that I posted. SMS Messages of a particular number not showing up on other devices Android.
The method…

Sahil Bora
- 173
- 1
- 12
0
votes
1 answer
get or set selected default sim card if the user has a dual sim
I have seen this post from 2012 and it has outdated answers. Until around 2015 Android natively supported multiple sim cards in API 22.
I heard about SubscriptionManager but I am not quite familiar with it, how can I get and dynamically set the…

jbmcle
- 771
- 3
- 12
0
votes
1 answer
How do I solve the google play policies for sms permission?
I have used the sms permission in manifest file for sending the sms in offline by using sms manager but google didn't accept the declartion form which i have checked the device automation or default sms handler or default assistant handler, so the…

hem
- 311
- 1
- 5
- 16
0
votes
0 answers
Trouble Accurately Logging Several Back-to-Back SMS Delivery Intents for Android
I am developing an android app that rapidly sends multiple SMS messages almost simultaneously to the same number (Please note this is for research purposes). I need this app to also track it's delivery intent, which I do by adding a bundle…

Midimistro
- 315
- 2
- 12