tags:

views:

43

answers:

1

Hi

i want to do some activity on sms after user read it, so how can my background service in android know that particular sms is now read(when my service start work) to react for some task.

is there system generate any integer when user read sms. if it generate than how will i get?

if anyone have any idea than share it.

A: 

The SmsMessage getStatusOnICC() method will return you the status of the message. Whether it is received, read or unread. Check the following links for more details :

http://developer.android.com/intl/fr/reference/android/telephony/SmsMessage.html#getStatusOnIcc%28%29

http://developer.android.com/intl/fr/reference/android/telephony/SmsManager.html#STATUS_ON_ICC_READ

Karan
Hi, karan i go through it,my task is not to know the status only but to know when the status is change from unread to read Ex. BroadcastReceiver override OnReceive method to get receiving sms.
dhaiwat
Hi, I don't know any whether any intent/method is called when the message status changes.
Karan