On Oct 24, 12:58 am, Mark Murphy <mmur...@commonsware.com> wrote:

> Disretrospect wrote:
> > Mark Murphy wrote:
> >> You cannot get TIME_TICK via a manifest-registered receiver. It has to
> >> be a receiver registered via Java code.
>
> > Still possible though, register your receiver from your config
> > activity or through a service started from onEnabled?
>
> Not from the config activity, since the activity will go away as soon as
> the configuration is done.

And not from onEnabled either, because the app widget provider is a
BroadcastReceiver, and that's not allowed:
http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver,
android.content.IntentFilter)

> And keeping a service around to receive a once-per-minute TIMER_TICK is
> bad for business. You want to not keep processes around any more than
> necessary.

Also very true, but less applicable in my case because the widget in
question is a clock, which the user wants to update once a minute.

> Frankly, IMHO, any user who installs a "task killer" app deserves
> whatever instabilities they get.

I absolutely agree in principle, but unfortunately it's the widget
devs who take the heat. The user sees the widget stop updating, and
immediately trash-talks it in Market comments.

> Is there an issue inhttp://b.android.comabout the AlarmManager/task
> killer problem?

There is now: http://code.google.com/p/android/issues/detail?id=4354

Please star if you agree that this is a problem, and add additional
comments if you feel my description could use clarification - I'm not
qualified to describe the issue at a platform level.

String
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to