Questions tagged [android-sms]

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

106 questions
20
votes
1 answer

Android SMS Content (content://sms/sent)

I'm having a problem reading the SMS messages from the device. When acquiring a content provider for the URI content://sms/inbox, everything is fine. I can read the person column to find the foreign key into the people table and ultimately reach the…
Martin
  • 425
  • 1
  • 6
  • 11
17
votes
8 answers

Why SMS Retriever API don't work in release mode?

I've implemented the SMS Retriever API like in the google tutorials and in my debug Build Variant work fine. I can read the sms and get the code to the user can do the login. My problem is when I run the app in release Build Variant the sms it…
11
votes
1 answer

OTP/SMS auto fetch issue using SMS Retriever API Android

I'm trying to use Google's SMS Retriever API for Automatic SMS Verification, but there is an issue in it. previously , I was reading sender number using getOriginatingAddress() and if it's valid sender number then read OTP otherwise it should not…
Atif AbbAsi
  • 5,633
  • 7
  • 26
  • 47
10
votes
2 answers

Android Device Monitor dependency on legacy Java SE 6 runtime

With Android Studio v2.2, the DDMS is deprecated in favor of Android Device Monitor. But when I try to open the Monitor, it doesn't open citing that it is dependant on legacy Java SE 6 runtime which in missing in my Mac Os Sierra. This is crazy,…
6
votes
2 answers

Android: Open SMS Intent

In my Android Aplication I just need to open SMS intent with pre populated message_body and the PhoneNumber. Following is the code I am trying Uri uri = Uri.parse(String.format("smsto:%s", strPhoneNumber)); Intent smsIntent = new…
JibW
  • 4,538
  • 17
  • 66
  • 101
6
votes
3 answers

Source code of android messaging

I am planning to create an application which the user can put security to their SMS. Is there a possibility for me to see the source code of the Messaging of Android phone? How?
sean
  • 9,198
  • 22
  • 65
  • 80
6
votes
1 answer

Why is SmsManager requiring READ_PHONE_STATE permission on some devices but not others?

The app uses SmsManager to send SMS text messages. The following method is only called after the SEND_SMS runtime permission has been successfully acquired from the user. The app targets API 25. public static void sendSmsTextMessage(Context context,…
Ollie C
  • 28,313
  • 34
  • 134
  • 217
5
votes
1 answer

Getting different App's Hash String every time | SMS Retriever API

I am integrating SMS Retriever API in my android app. I followed below docs to generate app's hash string: https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string Following are the ways to generate Hash: 1)…
Kalpesh Wadekar
  • 1,237
  • 11
  • 19
5
votes
0 answers

Delayed broadcast response for new SMS Retriever API

Recently we decided to start using SMS Retriever API to read OTP. I followed all steps and it's working correctly. The problem is BroadcastReceiver is getting callback after a long delay. SMS notification is pushed by system as soon as SMS is…
5
votes
0 answers

Android Wear OS application vibration sometimes doesn't work

I am developing an Android Wear OS 2.0 application. Every time a user gets an SMS from a given number, the watch should start vibrating, and a UI with a given text should appear, with a button, which stops the vibration. It works in the following…
adamb
  • 793
  • 1
  • 11
  • 20
4
votes
1 answer

I tried to read OTP from received SMS with SmsRetrieverClient but broadcast receiver not calling

I have tried to get sms using SmsRetrieverClient through its broadcast receiver, what actually problem is when SMS comes onReceive never calls to process it further but later on after 5 mins it calls receiver's timeout method. Actually I tried…
3
votes
2 answers

Detecting incoming SMS messages

In my android code, I am trying to detect incoming SMS messages. The code below was working since 2 years, but now it stopped working. What updates am I missing? public class SmsListener extends BroadcastReceiver { private String msgBody; …
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
3
votes
2 answers

How to Monitor Incoming SMS in Android API <19 & API >=19?

Am try to Monitoring Incoming SMS in my App. From Android Side they done some change for Monitoring incoming SMS from API 19. Can't Track incoming Message in Background(at the time of App not in Background & Mobile Screen in Off State) in API 23.…
Yugesh
  • 4,030
  • 9
  • 57
  • 97
2
votes
0 answers

java.lang.NoSuchFieldError: No static field INSTANCE of type in Twilio 9.1.0

I'm trying to use Twilio api(9.1.0) to send sms but i'm getting an error. E/AndroidRuntime: FATAL EXCEPTION: Thread-7 Process: au.com.thermalog, PID: 2004 java.lang.NoSuchFieldError: No static field INSTANCE of type…
2
votes
0 answers

Backend verification of hash code in android auto read of OTP sms

As mentioned in https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string The valid sms OTP verification message looks like - Your ExampleApp code is: 123ABC78 FA+9qCX9VSu The encoded hash code FA+9qCX9VSu is…
Gufran Khurshid
  • 888
  • 2
  • 9
  • 28
1
2 3 4 5 6 7 8