[android-developers] Re: Start Application with SMS
Try this code in SmsReceiver // Invoke MyActivityName Intent i = new Intent(context, MyActivityName.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); But after start my application, I don't know how to let it process the received sms content...hic On May 2, 3:04 am, theMerchant ali.taciro...@gmail.com wrote: Hello Everyone, I would like to know if anybody knows how I canstartmyapplication 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) myapplication. 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start Application with SMS
Based on the prior discussion on this subject, i thought we cannot delete the SMS messages ie prevent from them showing up in the Inbox. This is for security to prevent trojan attacks. Did i get that wrong? On May 4, 10:57 pm, Android Users androidmai...@gmail.com wrote: 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 ali.taciro...@gmail.com 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 androidmai...@gmail.com 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 ali.taciro...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start Application with SMS
that right what AndroidUser said, u just create a function to check received sms in ReceiveSms class or other place which ReceiveSms instance triggering this function. On Tue, May 5, 2009 at 10:57 AM, Android Users androidmai...@gmail.comwrote: 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 ali.taciro...@gmail.comwrote: 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 androidmai...@gmail.com 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 ali.taciro...@gmail.com 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. -- Hira Sirojudin +628 111988846 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start Application with SMS
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 ali.taciro...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start Application with SMS
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 androidmai...@gmail.com 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 ali.taciro...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Start Application with SMS
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 ali.taciro...@gmail.com 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 androidmai...@gmail.com 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 ali.taciro...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---