Write an IntentReceiver and add the following to your manifest <receiver android:name="YourIntentReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver>
On Apr 14, 9:14 pm, "E.D.I" <[EMAIL PROTECTED]> wrote: > i want to do some background work every once in a while according to a > schedule time > i want it to sceduale the alarm on boot completed. > currently i know how to create an intent receiver that catches the > boot completed and run a service > i know how to schedule the alarm from an activity. > but how can i combine those tow together. > cos i think that if i want to do some background work like sending > data through a port > every 5 min, and i want it to do so independently from boot to close > every time i reboot > this is way, i guess.... > thnx in advance --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---