title: Android Pausing activity on Back and Menu Keys
body: <p>In my application I have only one activity and I am using <code>ViewAnimator</code> for changing the screen. For the Menu and Back Keys I am trying to pause the activity (like home key does) and show a menu or go back to previous <code>View</code>.</p>
  
  <p>Angry Birds do the same think (Angry Birds Rio do exactly the same thing what I want).</p>
  
  <p>I have also checked the <code>OnKeyDown</code> event to find out how the Home key work but I think it is handled by the system.</p>
  
  <p><a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/app/Activity.java#Activity.onKeyDown%28int%2Candroid.view.KeyEvent%29" rel="nofollow">http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/app/Activity.java#Activity.onKeyDown%28int%2Candroid.view.KeyEvent%29</a></p>
  
  <p>Thanks.</p>