On Jul 14, 5:19 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > -- Service (B), on startup, registers an inner class IntentReceiver via > registerReceiver() for my private Intent, then sets up AlarmManager to > raise that Intent every N minutes, with the inner class IntentReceiver > doing the desired work.
This needs to be a top-level IntentReceiver (it could be the same as the BOOT_COMPLETED one). Otherwise, when your service stops because it is done with its work, upon being destroyed the registered intent receiver will be unregistered (and you should see in the log a message about it being leaked). Even if you have the service run all the time, defeating the purpose of using the alarm manager, under very low memory situations the system could need to kill its process, again causing the registered receiver to be unregistered. --~--~---------~--~----~------------~-------~--~----~ 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] 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 -~----------~----~----~----~------~----~------~--~---

