aspose file tools*
The moose likes Android and the fly likes How to detect incoming SMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to detect incoming SMS" Watch "How to detect incoming SMS" New topic
Author

How to detect incoming SMS

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

How to detect an incoming SMS from my application.
I want to read that SMS and delete also.


http://www.androcid.com/
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
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...


Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

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


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


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

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


iOS * Android Developer
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Thanks for your reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to detect incoming SMS