ANR error

Monkey Targets Forums/Android/ANR error

Powelly(Posted 2014) [#1]
I'm getting the following ANR reported in the Google Play developer console for my game:

ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x40000000 }

It seems to happen, so far, for users with HTC Wildfire S phones.
It looks as though the game is hanging when the phone's screen is turned off.

Does anybody know of any reasons why this might be happening?


MikeHart(Posted 2014) [#2]
https://www.google.de/#q=ANR+Broadcast+of+Intent+%7B+act%3Dandroid.intent.action.SCREEN_OFF+flg%3D0x40000000+%7D

My guess is that your OnCreate method takes to long to finish.


therevills(Posted 2014) [#3]
It seems to happen, so far, for users with HTC Wildfire S phones.

Those devices are really really bad - I ended up excluding them when I published my games.


Powelly(Posted 2014) [#4]
Thanks for the info.

I'll take a look at my OnCreate method, though I'm not sure I can remove much more from it.
I've not seen any problems on lower spec devices such as the Samsung Galaxy Europa.

I've still not seen a problem on anything other than the HTC Wildfire S, so perhaps excluding it is the answer.