aspose file tools*
The moose likes Android and the fly likes filter incoming sms android by phone no Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "filter incoming sms android by phone no" Watch "filter incoming sms android by phone no" New topic
Author

filter incoming sms android by phone no

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
can we filter incoming sms android by phone no ?
I need to filter sms which sent by specific user and show it as a pop up.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
A quick search on Google (a useful skill to have!) for "handle android sms programmatically" found this: http://www.apriorit.com/our-company/dev-blog/227-handle-sms-on-android


Ping & DNS - updated with new look and Ping home screen widget
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
I tried with below

this is my receiver class



this is manifest clasass



but when i run the code ,it gives me below error.


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
That doesn't run the code, that fails to install it. I can't speculate on why that might be for lack of information; have you been successful installing other of your APKs, right before and after this happens?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
now it working.anyway in my main activity there is nothing related to sms related codes.just print name.Anyway when i received a SMS from other user,does my app need to run or not?
Also don't need to add codes to main activity ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
Those are both easy to test, no?
 
 
subject: filter incoming sms android by phone no
 
Similar Threads
System event notification
intersept sms message
servlet
Can Android provides Hardware level access?