android-sms

App update rejected, stating that i Sush, com.toto.sush, does not qualify for use of READ_SMS, SEND_SMS, READ_CALL_LOG

一个人想着一个人 提交于 2020-12-12 05:39:55
问题 I've developed an android app 'Sush'. It is a utility app which caters to 'Flip-to-vibrate' functionality. I developed the first version back in 2017. Now i've updated my app to support latest android devices, and also updated the target SDK version. Along with this, i've also added an new core functionality of 'Quick response SMS'. With this, one can configure an SMS, which can be sent to the incoming calling number upon flipping the phone face-down. To implement this feature, my app had to

Trying to read SMS/MMS on Android and geting java.lang.NullPointerException

百般思念 提交于 2019-12-25 09:22:30
问题 I'm trying to read SMS/MMS on Android, and I have followed the answer, when writing the code and try to run it on an Android OS 6.0.1 on Samsung device I got the following exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.os.Parcel.readException(Parcel.java:1626) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils

Android ContentObserver- determine the SMS status

柔情痞子 提交于 2019-12-24 11:36:08
问题 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 failed to send, I noticed an unexpected behavior: The messages seem to be reported as if they were successfully sent, even though they're not - and I couldn't find any indication about the failure. Inside the obeserver's onChange function, I tried to

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

与世无争的帅哥 提交于 2019-11-29 20:30:13
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 contact and their name. However, I also want to traverse the sent messages too. When reading from content://sms/sent , the person field always appears to be 0. Is this the correct field to be reading to locate the recipient data for the sent message? If so - any idea why mine is always 0? All my testing has been done in the emulator and I've

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

做~自己de王妃 提交于 2019-11-29 18:49:32
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 types of phones I have been testing on. Cursor c = cr.query(Telephony.Sms.CONTENT_URI, null, null, null, null); But when I set it to a particular number, on the Samsung S9 phone running on API 27 it is not showing any sms messages. On the Nexus runnning on API 23, it will show the received messages but not the sent messages in the listview. On the

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

隐身守侯 提交于 2019-11-29 18:15:14
问题 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 doesn't work. I receive the sms but I can't read the code to do the login. I change the hash generated with AppSignatureHelper in release mode that is differente than in the debug mode. In debug work and in release no. Some help will be appreciate The

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

二次信任 提交于 2019-11-28 16:02:40
问题 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 contact and their name. However, I also want to traverse the sent messages too. When reading from content://sms/sent , the person field always appears to be 0. Is this the correct field to be reading to locate the recipient data for the sent

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

老子叫甜甜 提交于 2019-11-28 12:58:48
问题 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 types of phones I have been testing on. Cursor c = cr.query(Telephony.Sms.CONTENT_URI, null, null, null, null); But when I set it to a particular number, on the Samsung S9 phone running on API 27 it is not showing any sms messages. On the Nexus