Dear Nguyen,

> Sorry for my bad english but as i understand you mean onRecieve() not
> receive broadcast message from system ?

Normally, onRecieve() can receive broadcast message from system. It's
no problem.

But what I'm saying is that system kill my widget when system is
special condition (for example, memory-leak problem).

In other words, when system has memory-leak problem, system will kill
my widget.

If my widget has died from system, it can NOT receive broadcast
message any more.

My digital clock sometomes freeze for this reason.

-------------------------------------------------

[ more Informations ]

http://developer.android.com/reference/android/content/BroadcastReceiver.html

* Receiver Lifecycle & Process Lifecycle

A BroadcastReceiver object is only valid for the duration of the call
to onReceive(Context, Intent). Once your code returns from this
function, the system considers the object to be finished and no longer
active.
A process that is currently executing a BroadcastReceiver (that is,
currently running the code in its onReceive(Context, Intent) method)
is considered to be a foreground process and will be kept running by
the system except under cases of extreme memory pressure.

Best Regards,
hardrock

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to