ANR during app restart
<p>Precondition:</p>

<p>Android 4.0.3.</p>

<p>Steps to reproduce: </p>

<p>open app, press back key.</p>

<p>Bug was reproduced once.</p>

<p>Is this error a android bug or my app. bug?</p>

<pre><code>  "InputDispatcher" prio=10 tid=31 TIMED_WAIT
  | group="main" sCount=1 dsCount=0 obj=0x4165e6c0 self=0x23cfa8
  | sysTid=1916 nice=-8 sched=0/0 cgrp=[no-cpu-subsys] handle=2017576
  | schedstat=( 22339660675 10841338980 166402 ) utm=1041 stm=1192 core=1
  at java.lang.Object.wait(Native Method)
  - waiting on &lt;0x41f3e5d8&gt; (a com.android.server.am.ActivityManagerService$4)
  at java.lang.Object.wait(Object.java:401)
  at com.android.server.am.ActivityManagerService.dumpStackTraces(ActivityManagerService.java:2980)
  at com.android.server.am.ActivityManagerService.dumpStackTraces(ActivityManagerService.java:2958)
  at com.android.server.am.ActivityManagerService.appNotResponding(ActivityManagerService.java:3195)
  at com.android.server.am.ActivityRecord.keyDispatchingTimedOut(ActivityRecord.java:757)
  at com.android.server.am.ActivityRecord$Token.keyDispatchingTimedOut(ActivityRecord.java:243)
  at com.android.server.wm.InputMonitor.notifyANR(InputMonitor.java:108)
  at com.android.server.wm.InputManager$Callbacks.notifyANR(InputManager.java:608)
  at dalvik.system.NativeStart.run(Native Method)
</code></pre>
