• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect incoming SMS  RSS feed

 
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to detect an incoming SMS from my application.
I want to read that SMS and delete also.
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use BroadcastReceiver

declare permission in your Manifest.xml as


amd in the onReceive() method of BroadcastReceiver, you can achieve the task you want to perform once you receive the SMS...


 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

chetan dhumane wrote:I want to read that SMS and delete also.



Not sure if you would be allowed to delete SMS..
 
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Not sure if you would be allowed to delete SMS..



I think we can delete SMS also, use content://sms/conversations/id to delete particular SMS. Refer Content Resolver for more details.

Thanks & Regards
Pratik Goswami
 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!