Re: [android-developers] Broadcast Receiver From Widget

2009-12-02 Thread Dianne Hackborn
Oh and please keep in mind -- app widgets were very deliberately designed to work this way because on the vast majority of Android devices there is just not nearly enough memory to be able to run at the same time all of the widget users have placed on their home screen. You need to take care in yo

Re: [android-developers] Broadcast Receiver From Widget

2009-12-02 Thread Dianne Hackborn
You simply can not do this. A BroadcastReceiver component only "lives" for the duration of the call to onReceiveIntent(); it is not allowed to use registerReceiver in it, because by the time you return from that method (at which point you could first receive anything from your register), the compo

[android-developers] Broadcast Receiver From Widget

2009-12-02 Thread Henry S.
Hi, I am making a widget that needs a broadcast receiver, like the one in com.example.android.apis.appwidget.ExampleBroadcastReceiver. However, the example defines Intent.ACTION_TIMEZONE_CHANGED in the manifest, but there are some that do not allow this For example, Intent.ACTION_TIME_TICK says