Questions tagged [android-sms]

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

106 questions
1
vote
1 answer

Android smsManager handling Grave accent character

Struck some odd behaviour in my Android sms app when there is a Grave accent in the message, for example; smsTEXT = "Pls call the office asap if you`re keen." Message is within single 160 char sms length, however when I call this; ArrayList
rangi
  • 361
  • 2
  • 4
  • 21
1
vote
1 answer

Broadcast receiver inside service did not listen after app removed from background

I have a broadcast receiver registered to receive SMS inside a service. The intention of the Application is to get the SMS on receive and save the contents of SMS from expected sender in Sqlite storage. The App need to capture the SMS received also…
1
vote
1 answer

SMS Retriever API - how to programmatically get SMSs?

I want to implement sms OTP receiver in my android project which is totally in java not kotlin. Please can anyone help me to do this thing in android using java language? I was tried kotlin code in my android project but my UI functionalities is…
1
vote
0 answers

Is it possible to block the SMS notification with SMS Retriever API

I've implemented the SMS Retriever API and seen some conflicting information on what the expected behavior is when using this flow. Ideally: There would be no visible SMS notification that the user might think they need to act on The SMS would not…
john_ryan
  • 1,557
  • 1
  • 16
  • 34
1
vote
1 answer

Google SMS Retriever API doesn't work in Turkey

We've a problem as Android Developers in Turkey, about Google SMS Retriever API. We can't use this API. https://developers.google.com/identity/sms-retriever/ API says "End with an 11-character hash string that identifies your app". The problem…
Cafer Mert Ceyhan
  • 1,640
  • 1
  • 13
  • 17
1
vote
0 answers

Show “SMS Services that cost you money” dialog before sending automated SMS

The core logic of my app is to detect a particular keyword from an upcoming SMS and then if it matches a certain condition it will send an automated SMS with a specified recipient, the app has a Switch view if activated it will listen to all…
jbmcle
  • 771
  • 3
  • 12
1
vote
0 answers

Android ContentObserver- determine the SMS status

I've registered a ContentObserver to the URI of Telephony.Sms.CONTENT_URI, in order to be notified every time the user sends or receives a new SMS message. For successfully-sent and received messages, this works fine - but for messages that have…
Yoav Feuerstein
  • 1,925
  • 2
  • 22
  • 53
1
vote
1 answer

Link in SMS from android app

I want to send a link in SMS from my android application. I am able to do so. But whole body doesn't reflect as a link. Part of SMS is not shown as a link. Any help how to do so in android app. SmsManager smsManager =…
Mohammad Aamir
  • 471
  • 2
  • 5
  • 14
1
vote
0 answers

Sending customize extension file through attachment in MMS

I have a customize extension file which i'm saving in internal memory let's say file.abc, everything is working fine and i'm able to share it through every messenger but can't attach it to sms as it's not media file i thought.Is there any solution…
Anmol Rai
  • 46
  • 7
1
vote
0 answers

How does Android handle SMS for default SMS app when in Doze Mode and priority is set to '10'?

Consider the following scenario: an SMS app is registered as the default app the priority is set to 10 (as in code below) the phone enters Doze mode (STATE IDLE) intent-filter android:priority="10" When happens when an SMS is received? Will it…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
1
vote
1 answer

New Permissions Added Warning

I am updating the apk of my app in the playstore. The recent change that I have done is that I am using SEND_SMS feature now. I have mentioned the same in the AndroidManifest.xml and also requesting the permission in the code. following is the…
pamo
  • 111
  • 2
  • 13
1
vote
1 answer

How to retrieve only the last message of every conversation including the locked message using Telephony.Sms?

I'm using the below code to retrieve a message from sms. private List getEveryLastMessages(){ List listSms = new ArrayList(); ContentResolver contentResolver = getActivity().getContentResolver(); Cursor c =…
Polar
  • 3,327
  • 4
  • 42
  • 77
1
vote
2 answers

Send SMS between Android emulators

I can send sms to a emulator with "extended controls"->"phone" and with command line : $ adb -s emulator-5554 emu sms send 5551234 Hello Android but i can't send and receive sms with built-in sms application like this : i use android studio 2.2.
Delay
  • 93
  • 3
  • 9
1
vote
1 answer

SMS is not being sent

I want to send SIM details through sms, I am using this code (given below) but it is not working (sms is not being sent), I am not getting any error or exception. Please tell what is the problem? Code: SmsManager smsManager =…
Sajal Ali
  • 427
  • 1
  • 10
  • 21
1
vote
1 answer

Android Broadcast Receiver not getting trigerred

I am trying to read all incoming SMS in my Android application. I have written a Broadcast Receiver to read the messages and have added the permissions for it in the AndroidManifest. I am getting the following…