Questions tagged [android-sms]

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

106 questions
0
votes
0 answers

SMS permission un-checks itself on API 27 and up

I have a strange problem on Android API 27 and higher. I have an app for our fire department, that checks every received SMS, and react to it, if the sender is a specified number. (We use SMS alarming, and this app must fire up on each SMS alarm and…
Martin
  • 9
  • 2
0
votes
0 answers

SMS BroadcastReceiver not triggered when phone hasn't been used for a while?

I have an app that registers a BroadcastReceiver in the manifest
0
votes
1 answer

Sending SMS from inner class using SmsManager is not working

UPDATE: if I take sendSms() function outside the inner class it works! but I need it inside. Can someone help? I'm trying to send sms in backgroud using SmsManager and nothing happens. when I go to Logcat it says: E/art: Failed sending reply to…
Yael Pesso
  • 53
  • 8
0
votes
1 answer

Under what circumstances does Android require user intervention to send a SMS?

I'm developing an app that will send very infrequent SMS messages from a foreground service. By very infrequent we're talking a few times per year at most, if the app is not severely misused by the user themselves. I tested it the other day on a…
Magnus
  • 17,157
  • 19
  • 104
  • 189
0
votes
0 answers

How to delete sms in android programmatically? Or, Is delete sms is possible on target sdk as 26?

In our application there is a feature delete SMS programmatically. The application Target SDK version is 26 . And i have changed default SMS application as default SMS app which is available on device. I have tried the code below. Requirement: Need…
karthik
  • 321
  • 1
  • 8
  • 21
0
votes
2 answers

How to send text SMS message into specific app in android with out making your app default message app?

I have searched the internet and stackoverflow and there are many similar question but non of them help me to solve my problem. I have an android application that sends and accept text message(not for messaging purpose). I have used the following…
Yirga
  • 881
  • 1
  • 12
  • 31
0
votes
1 answer

Should I store messages in my database or query the system SMS database everytime?

I am developing an SMS app. I am getting messages from the Android Database every time user opens the App. On a device with around 100 messages, it works fine. But with a device with 10,000 messages the app takes around 20 seconds to display the…
Hemant Aggarwal
  • 849
  • 1
  • 7
  • 13
0
votes
1 answer

Reading sms from android inbox who's sender doesn't have a number

I am making an app which records the messages from a particular sender.For e.g I want to get all SMS from the bank HDFC in a Listview.The sender's address in my inbox is named as "AM-HDFC".I have tried the below code but the app crashes saying that…
0
votes
0 answers

Android SMS how to only show latest message per contact and count conversation of a sender

so I am working on a SMS application project and I don't know how to only show the latest text per user, also how to count the conversation per sender. This is my code: private void refreshSMSInbox() { ContentResolver contentResolver =…
Code-Me
  • 1
  • 2
0
votes
3 answers

Android- On clicking button the message sending does not stop

I am trying to build an app where I share my location via text message. In the activity I have one button and one TextView. After clicking the button the text message is sent to the specified number provided. The problem is that once I click the…
Pritom Mazumdar
  • 325
  • 5
  • 20
0
votes
1 answer

Sending text message using android application

I am trying to build an SMS application by following this tutorial and everything seems to be fine except when I hit the send button,the message is not received by the other user whose number I have entered in the EditText. In the application I have…
0
votes
1 answer

How to check if android device can send SMS, when hasSystemFeature is false?

An app needs to know if it is capable of sending an SMS. Now what I can see is the following line is returning false for emulator. getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY) I am worried that if it is returning false…
codebased
  • 6,945
  • 9
  • 50
  • 84
0
votes
0 answers

Messaging App not receive SMS in android

My private app receives broadcast SMS. I want to abort the SMS from specific numbers.For this, I made my private app as the default app. Now every SMS automatically aborted and Messaging app cannot recieve any SMS. Please guide me where I am wrong.…
0
votes
1 answer

Get Only Before 5 Minutes Inbox SMS

I want to select only latest inbox SMS on button click. Here is my code. btnGet = (Button) findViewById(R.id.btnGet); btnGet.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { …
user7515405
0
votes
0 answers

Send inbox SMS to server via API

I'm Developing an android application. I want to save inbox sms to sql database server. Here is my android code public void onReceive(Context context, Intent intent) { final Bundle bundle = intent.getExtras(); try { if…
user7515405