intercept sms

Put your problem here if it does not fit any of the other categories.

intercept sms

Postby nigel223 » Wed Feb 24, 2010 5:08 am

requirements:
1.Can intercept short messages by condition I specify(means that the system's sms can't receive any messages and don't send any notification to user). If the short message isn't match my condition that my app will not intercept it and the sms can receive the short message.

2.When I intercept a sms successfully,I can handle this message such as store it to a custom table.

I implement the functionality above by ContentObserver class,but it not work well.Sometimes it can't intercept short message in time.I think it's due to system delay.In this case,the sms and my app will receive the short message and send notification at the same time.So,now I hope who can help me to solve this issue or give me some hints.

Thanks a lot.

You can download my source code below
Attachments
SMSApp.rar
Use ContentObserver class to implement above functionality,please download and give me some idea.
(50.34 KiB) Downloaded 74 times
nigel223
Freshman
Freshman
 
Posts: 4
Joined: Tue Jan 19, 2010 10:09 am
Location: chengdu,sichuan,China

Top

Postby nigel223 » Fri Feb 26, 2010 2:58 am

Is there anyone can help me?
nigel223
Freshman
Freshman
 
Posts: 4
Joined: Tue Jan 19, 2010 10:09 am
Location: chengdu,sichuan,China

Postby soclose » Thu Apr 29, 2010 7:30 am

Hi nigel223,

Thank you for your source code. Is your application always listening any receiving sms whether this application is on or off currently?
soclose
Experienced Developer
Experienced Developer
 
Posts: 80
Joined: Sun Apr 25, 2010 8:38 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 22 guests