i have an app which shows the received messages as a Toast through a BroadcastReceiver. I am presently using the SmsMessage.getOriginatingAddress() method which gives me the number of the sender, how can modify it to get the corresponding name of the sender if stored in the contacts?
Share
You will need to query the contacts for the rest of the data.
First query for the contacts id using the phone number.
Then query for the Contacts name with the id from the first query.
You may be able to combine these two queries somehow.