title: Android losing touch events when changing tabs
body: <p>I have a TabActivity with 2 tabs that contain a control that responds to Scale and Scroll events.</p>
  
  <p>When I fire up my app to begin with it starts on Tab 1 and I can scale and scroll the view shown on the 1st Tab's activity.</p>
  
  <p>When I switch to Tab 2 again I can scale and scroll the view shown on the 2nd tab's activity.</p>
  
  <p>All looks good.</p>
  
  <p>When I switch back to the 1st tab suddenly I can no longer scale or scroll.  If i switch back to the 2nd again then that one works fine.  Its as if the touch focus is being taken by the view on the 2nd tab and never being surrendered.</p>
  
  <p>I've even tried re-initialising my GestureDetectors in case they somehow get destroyed when one Activity gets backgrounded.</p>
  
  <p>I've tried the following code to no avail:</p>
  
  <pre><code>public void onPause()
  {
      super.onPause();
      mView.clearFocus();
  }
  
  public void onResume()
  {
      super.onResume();
      mView.requestFocus();
      mView.InitGestureDetectors( this );
  }
  </code></pre>
  
  <p>Where InitGestureDetectors simply does the following:</p>
  
  <pre><code>public void InitGestureDetectors( Context ctx )
  {
      mScaleGestureDetector   = new ScaleGestureDetector( ctx, new ScaleGestureListener() );
      mGestureDetector        = new GestureDetector( ctx, new GestureListener() );
  }
  </code></pre>
  
  <p>Can anyone tell me how I can get my touch gestures working again when i subsequently switch tabs?</p>