Hi, Every msg tat comes will go to the inbox. you can check for the incoming msg and if in case it matches ur string,SMS12:Hi! then you can handle things accordingly.
There are also options to delete SMS from inbox(in case u dont need them to be stored).There are few discussions related to this on groups. You can check there. On Mon, May 4, 2009 at 9:38 PM, theMerchant <[email protected]> wrote: > > Thank you for your reply. > > Is it possible to filter out messages? I do not want to read every SMS > message for example. If I am sending it to my application such as > //SMS12:Hi! I would like to receive it in my application, all other > sms messages should go to the phones sms box. > > > > > > On May 4, 2:49 am, Android Users <[email protected]> wrote: > > Hi, > > > > Implement a BroadcastReceiver class and perform the functions that u > intend > > to in the onReceive() method. > > > > Also, add the class u have implemented as a receiver in the manifest. > > Eg: > > <receiver android:name=".ReceiveSms"> > > <intent-filter> > > <action > > android:name="android.provider.Telephony.SMS_RECEIVED" /> > > </intent-filter> > > </receiver> > > > > you can check this.. > http://www.anddev.org/recognize-react_on_incoming_sms-t295.html > > > > Let me know if u need more information. > > > > On Sat, May 2, 2009 at 1:34 AM, theMerchant <[email protected]> > wrote: > > > > > Hello Everyone, > > > > > I would like to know if anybody knows how I can start my application > > > with an incoming SMS message. > > > > > For example, I send an SMS message from phone A to Phone B. When Phone > > > B receives the message, it checks if it is sent to my program. If it > > > is, it starts(run) my application. Important thing here is that my > > > program is not running in the device unless SMS is received, so it can > > > not be listening for SMS itself. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

