Eason
unread,Apr 26, 2012, 11:04:54 PM4/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-...@googlegroups.com
I'm told that a BroadcastReceiver hasn't finished executing within 10 seconds that will trigger ANR. I have done a test about this on ics4.0. When I dynamically register an instance of BroadcastReceiver with Context.registerReceiver(), I write a function expense time more than 10 seconds in onReceive() , if I do nothing, just waiting it run the function, it won't trigger ANR. And I resgister a BroadcastReceiver in AndroidManifest.xml, do the same thing above, it will triggle ANR.Why? What's the difference?