• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Unable to create an ANR message

ydn_dev

Lurker
Hi,

I'm trying to create an ANR message by having a loop counting from 0 to Integer.MAX_VALUE inside a button click handler. I'm however, not getting ANR message. The UI just hangs till the loop terminates( for around 40-45 seconds). I'm running this on emulator. Am I missing something here?
 
miXer,

I understand why the UI hangs. Infact I put counting loop deliberately to make the UI hang. What I could not understand was why the emulator was not displaying 'Application Not Responding' dialog. Apparently, the dialog appears only if the user tries to perform some action on the UI like editing a field or clicking a button when the UI is unreponsive. If I do not perform any UI action, the dialog does not appear.

Thanks
ydn_dev
 
Back
Top Bottom