Thanks, but I already HAVE such a thing in my Manifest... I suppose that my BR intent *could be* lurking while my MAIN dies... but then why doesn't the MAIN get REStarted when the BR starts updating Main's (static) variables ? Main is *not* starting and so its just as if the SMS was never received...
any ideas? On Sep 11, 3:02 pm, Kostya Vasilyev <kmans...@gmail.com> wrote: > Well, all-you-gotta-do is: > > Register your receiver in the manifest, like so: > > <receiver android:name=".YourSmsMessageReceiverClassName"> > <intent-filter> > <action android:name="android.provider.Telephony.SMS_RECEIVED" /> > </intent-filter> > </receiver> > > ( Taken > from:http://developer.android.com/resources/samples/ApiDemos/AndroidManife... > ) > > Receivers declared in the manifest are active all the time, for as long > as the application is installed (and not disabled in the manifest). You > don't need to take any kind of special action for them to receive events. > > In the onReceive() method of your broadcast receiver, you are free to do > whatever you like: such as starting a service to do some kind of > processing (I actually recommend this). > > The application process will be started by Android as necessary. > > -- Kostya > > 11.09.2010 22:25, tony obrien пишет: > > > I am hoping someone may respond and say … "Well, all-you-gotta-do is > > Blah_Blah…" Is there a way to make the OS "not" clean me out of > > memory? Is the answer to make the b-receiver a "service"? And is that > > allowable in Android? > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- 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