This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
(J2ME)How to interrupt in-built sms receiving service of mobile phone using J2ME.
WMA MIDlets, how do you receive sms without a port no.
WMA MIDlets, how do you receive sms without a port no.
(J2ME)How to interrupt in-built sms receiving service of mobile phone using J2ME.
which pattern to use for message conv. and trf.