Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

filter incoming sms android by phone no

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are both easy to test, no?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic