About SMS

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

About SMS

Postby soumen4code » Tue Mar 29, 2011 7:17 am

I want to build an app where

when the sms will received if there is any word "SECURITY" is there in the SMS then a toast will occur to say that it is a sensitive SMS.
Please reply if anybody knows how to do it.......I am waiting for your reply....URGENT
soumen4code
Developer
Developer
 
Posts: 46
Joined: Wed Mar 16, 2011 4:21 pm

Top

Re: About SMS

Postby raj_J2ME » Tue Mar 29, 2011 7:49 am

soumen4code wrote:I want to build an app where

when the sms will received if there is any word "SECURITY" is there in the SMS then a toast will occur to say that it is a sensitive SMS.
Please reply if anybody knows how to do it.......I am waiting for your reply....URGENT

You can read the content of incoming SMS and then parse the SMS if the keyword which you are looking for is there in the content of the SMS, if found the display the dialog,

There are many code examples on the web, even this link might help you.
http://www.anddev.org/recognize-react_on_incoming_sms-t295.html
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: About SMS

Postby soumen4code » Tue Mar 29, 2011 8:23 am

It's helpful but not exactly I want. I want suppose some word is there say URGENT then the sms Reactor will show some test. I didn't get the idea how can I do it.
soumen4code
Developer
Developer
 
Posts: 46
Joined: Wed Mar 16, 2011 4:21 pm

Re: About SMS

Postby raj_J2ME » Tue Mar 29, 2011 8:44 am

You read the SMS, and check through the SMS content if that keyword exists there. If yes then take some action.

You can check like this,

1. Use the equals() method
2. Use the Indexof() keyword,

please check and revert.
Thanks with Regards,
Raj - The Kernel
raj_J2ME
Master Developer
Master Developer
 
Posts: 311
Joined: Tue Feb 15, 2011 7:40 am
Location: The Capital of India,

Re: About SMS

Postby soumen4code » Tue Mar 29, 2011 9:41 am

Thanx Raj. Indexof() method will solve the problem
soumen4code
Developer
Developer
 
Posts: 46
Joined: Wed Mar 16, 2011 4:21 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: MSNbot Media, Yahoo [Bot] and 18 guests