ANR time change

1,401 views
Skip to first unread message

Dan Raaka

unread,
May 11, 2009, 2:59:56 PM5/11/09
to android-platform
Currently the Application Responding Timeout has been set at 5secs.
What is the reasoning behind that 5sec, why not 3 or 7? Is this tied
to some usability study or just the max that would be taken any code
within the platform which may run on the application UI thread ?

-Dan

Dianne Hackborn

unread,
May 11, 2009, 7:15:09 PM5/11/09
to android-...@googlegroups.com
It's the number I picked when I implemented it, as a reasonable choice between something that is making the user wait way too long vs. not triggering in poorly behaving but not totally broken situations.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

dan raaka

unread,
May 11, 2009, 7:21:31 PM5/11/09
to android-...@googlegroups.com
well .. If we change it to a higher value and go through adequate testing, would it be fine ?
Will this break CTS ?

Dianne Hackborn

unread,
May 11, 2009, 8:09:29 PM5/11/09
to android-...@googlegroups.com
No.  If you can't run the platform correctly, you need to fix that.

Romain Guy

unread,
May 11, 2009, 8:12:51 PM5/11/09
to android-...@googlegroups.com
5 seconds is a LONG TIME. That means the UI cannot be refreshed and
that the user cannot interact with the app... for *5 seconds*. You
should really not attempt to use a higher value.
--
Romain Guy
Android framework engineer
roma...@android.com

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

Jean-Baptiste Queru

unread,
May 26, 2009, 1:29:57 PM5/26/09
to android-...@googlegroups.com
Like Romain said, a concern is that 5 seconds is a really long time to
allow the UI to be entirely unresponsive before doing anything about
it. If that value got to be changed, that should only be to make it
smaller.

JBQ
--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Anonymous Anonymous

unread,
May 31, 2009, 9:25:42 AM5/31/09
to android-...@googlegroups.com
Can someone help me to find where this is configured?(ANR timeout) i wud really like to do a test :|
thanks

Romain Guy

unread,
May 31, 2009, 12:31:20 PM5/31/09
to android-...@googlegroups.com

Do NOT change this value, fix the app or whatever code is causing trouble.

On May 31, 2009 6:26 AM, "Anonymous Anonymous" <firewa...@googlemail.com> wrote:

Can someone help me to find where this is configured?(ANR timeout) i wud really like to do a test :|
thanks

On Tue, May 26, 2009 at 10:59 PM, Jean-Baptiste Queru <j...@android.com> wrote: > > > Like Romain sai...

Reply all
Reply to author
Forward
0 new messages