On 27 Okt., 09:42, Mark Murphy <mmur...@commonsware.com> wrote: > > - Ready = waiting for AlarmManager/C2DM events (maybe with an alarm > > clock as status icon?) > There should be no code running at this point; hence, IMHO, this > status is pointless and confusing.
I don't think so. From a user's point of view, there's no difference if there's a started service that's actually doing something by Handler.postDelayed every 5 minutes and an app that does the same by a repeating AlarmManager. (Sure, technically, the service could stop working and there are additional CPU/battery costs for the message loop, which usually should be insignificant compared to the actual work done.) I'm generally a bit confused about Google making misused services "pariahs" while I could bomb a device with AlarmManager Intents every few seconds and nobody would see any difference to a paused Activity, except maybe in battery consumption. > > There could even be an unified "stop background work" Intent which is > > sent when an app is "stopped" by a task manager. If the app doesn't > > support this Intent, there could be a message like "Stopping not > > supported by app. Please check whether there are preferences you could > > modify." This could be done on purpose by e.g. alarm clocks. Or the > > app brings up it's own warning/query, like "Do you really want to stop > > automatic profile changes?" > This requires no modifications to Android. You are welcome to work out > a convention and try to get task managers and app developers to adhere > to it. In theory, that's true. But an official way to do that is an entirely different thing than a private campaign that might even end up with dozens of concurring intents because every task manager developer wants his own package name contained. And imho there's not that much use to it as long as task managers can only list either "apps in memory" or "running services". -- 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