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
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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1128
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: 41839
    
  63
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 - my free Android networking tools app
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1128
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: 41839
    
  63
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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1128
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: 41839
    
  63
Those are both easy to test, no?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: filter incoming sms android by phone no