Hi all,
My application has some native code,which waits on some network
related stuff,as soon as native
code receives events from network native code is trying to broadcast a
request which will be received
by android application.
Native code is part my application and runs in same process.
I am passing context object from application by providing a
static method to give context of the
application, to my native code and by using that context native
code sending Broad Cast request.
I am sending a parcelable along with the intent which is used
to send the broadcast, from native code.
Some times my Broadcast Receiver showing as follows.
Timeout of broadcast BroadcastRecord{436c36a0 com.test.Test} -
receiver=android.os.binderpr...@436cc658
W/ActivityManager( 74): Receiver during timeout: ResolveInfo
{4369b008 com.test.Main$EventReceiver p=0 o=0 m=0x108000}
I/ActivityManager( 74): ANR (application not responding) in process:
hs.com
I/ActivityManager( 74): Annotation: Broadcast of Intent
{ action=com.test.Test comp={com.test/com.test.Main$EventReceiver}
(has extras) }
I/ActivityManager( 74): CPU usage:
I/ActivityManager( 74): Load: 8.03 / 7.15 / 5.12
I/ActivityManager( 74): CPU usage from 11097ms to 55ms ago:
I/ActivityManager( 74): hs.com: 78% = 78% user + 0% kernel
I/ActivityManager( 74): top: 12% = 3% user + 8% kernel
I/ActivityManager( 74): top: 5% = 1% user + 3% kernel
I/ActivityManager( 74): system_server: 1% = 0% user + 0% kernel
I/ActivityManager( 74): adbd: 1% = 0% user + 1% kernel
I/ActivityManager( 74): wpa_supplicant: 0% = 0% user + 0% kernel
I/ActivityManager( 74): akm8973: 0% = 0% user + 0% kernel
I/ActivityManager( 74): kondemand/0: 0% = 0% user + 0% kernel
I/ActivityManager( 74): events/0: 0% = 0% user + 0% kernel
I/ActivityManager( 74): rpcrouter: 0% = 0% user + 0% kernel
I/ActivityManager( 74): rild: 0% = 0% user + 0% kernel
I/ActivityManager( 74): tiwlan_wifi_wq: 0% = 0% user + 0% kernel
I/ActivityManager( 74): com.htc.android.psclient: 0% = 0% user +
0% kernel
I/ActivityManager( 74): TOTAL: 100% = 84% user + 15% kernel
I/ActivityManager( 74): Removing old ANR trace file from /data/anr/
traces.txt
I/Process ( 74): Sending signal. PID: 862 SIG: 3
I/dalvikvm( 862): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 142 SIG: 3
I/dalvikvm( 142): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 889 SIG: 3
I/dalvikvm( 889): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 135 SIG: 3
I/dalvikvm( 135): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 438 SIG: 3
I/dalvikvm( 438): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 411 SIG: 3
I/dalvikvm( 411): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 338 SIG: 3
I/dalvikvm( 338): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 557 SIG: 3
I/dalvikvm( 557): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 188 SIG: 3
I/dalvikvm( 188): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 233 SIG: 3
I/dalvikvm( 233): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 286 SIG: 3
I/dalvikvm( 286): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 266 SIG: 3
I/dalvikvm( 266): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 380 SIG: 3
I/dalvikvm( 380): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 297 SIG: 3
I/dalvikvm( 297): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 505 SIG: 3
I/dalvikvm( 505): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 470 SIG: 3
I/dalvikvm( 470): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 461 SIG: 3
I/dalvikvm( 461): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 455 SIG: 3
I/dalvikvm( 455): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 476 SIG: 3
I/dalvikvm( 476): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 139 SIG: 3
I/dalvikvm( 139): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 448 SIG: 3
I/dalvikvm( 448): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 421 SIG: 3
I/dalvikvm( 421): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 372 SIG: 3
I/dalvikvm( 372): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 396 SIG: 3
I/dalvikvm( 396): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 388 SIG: 3
I/dalvikvm( 388): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 223 SIG: 3
I/dalvikvm( 223): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 362 SIG: 3
I/dalvikvm( 362): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 357 SIG: 3
I/dalvikvm( 357): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 346 SIG: 3
I/dalvikvm( 346): threadid=7: reacting to signal 3
I/Process ( 74): Sending signal. PID: 74 SIG: 3
I/dalvikvm( 74): threadid=7: reacting to signal 3
D/IQClient( 51): Receive a battery uevent...
In my Broadcast receiver i am trying create a new thread ,
so that i am processing the intent in that new
thread and my main thread won't blocked.
Why am i getting this problem?
Even though i have a separate thread to process incoming intent.
Any help would be highly appreciated.
--
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