Timeout of broadcast BroadcastRecord
my Android application generates this warning:
06-30 14:43:17.863: WARN/ActivityManager(590): Timeout of broadcast BroadcastRecord{437385d8 android.intent.action.TIME_TICK} - receiver=android.app.ActivityThread$PackageInfo$ReceiverDispatcher$I开发者_如何学JAVAnnerReceiver@436d0960 06-30 14:43:18.664: WARN/ActivityManager(590): Receiver during timeout: BroadcastFilter{436d0b80 ReceiverList{436d0b08 590 system/1000 client 436d0960}} 06-30 14:43:32.533: WARN/ActivityManager(590): finishReceiver called but no pending broadcasts
Someone can tell me what that means? In my application there are a lot of active thread.
Thanks in advance
The most likely cause of this is that you are doing some heavy processing in the onReceive()
method of a BroadcastReceiver
. Your onReceive()
should typically just kick off a Service
and then return, and any processing is done in your Service
. My guess is that your onReceive()
is taking too long to complete, resulting in this error. Read the section on Receiver Lifecycle for more information.
I guess the reason is that the cpu is busy and binder call failed.
so the broadcast can not be dispatched quickly.
精彩评论