I have one problem that when ever I configure Andriod studio to read coming
SMS from number in my code, it reads carefully without any problem. Once I
configured it to read from sender that is string and does not have number
(like messages from Bank, brand, ...etc.), it does not accept. It always
tries to search for the number that it is represented by this name. How can
I write code that will take the string in the sender field as is and will
not search for it in the contact.
Here is the code:
public String getReadMessageSenderName() {
SQLiteDatabase db = this.getReadableDatabase();
String selectQuery = " SELECT senderName FROM setReadMessageTable ";
Cursor c = db.rawQuery(selectQuery, null);
if (c != null)
c.moveToFirst();
String nameSender ;
nameSender =c.getString(0);
return nameSender;
}
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/2fe29c26-4081-4ec0-9327-cf030a534699%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.