The dialog is shown when an application isn't responding to the system, so the user can kill it without having to wait. It currently is shown in two main places: when the window manager waits to long on an event it has dispatched to an application, and when the activity manager waits too long on a serialized broadcast it has sent to an application (thus delaying any other recipients of the broadcast).
On developer builds, you see the ANR dialog whenever either of these happens for any applications. On release builds, the dialog is only shown when the current foreground application is causing the ANR; background applications that are not responding to broadcasts are simply killed without the user being involved. The way you control this is by writing your code so it doesn't happen. :) On Wed, Mar 18, 2009 at 6:58 PM, Jag Dev <[email protected]> wrote: > Hello, > > What is the logic behind ANR popups? > > For example, > > When playing a music and doing random key presses results in this popup? > > The music app is trying to do something in the background? Even though this > popup is seen, the music app plays in the BG and hence if we select "wait" > then everything goes through fine. But this is kind off annoying or giving a > impression that something failed? > > Can you please let me know: > > 1. How do we control this popup and where is the control? > 2. What is the logic behind ANRs'? > > Thanks for your time and help. > Dev > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
