title: OnTouchListener handles Touch even after finish();
body: <p>I have a simple android Activity with an OnTouchListener.
  There I have a button, which starts another Activity and finishes the current one (with finish();). Now the problem is that while the next Activity is loading (and the screen is black) the Touch-events already get processed, so when the loading is done, some things are pressed already. I want the TouchListener to start working when the Activity is done loading and not halfway through.</p>
  
  <p>I already tried delaying the View.setOnTouchListener(this); but it doesnt work. Touch events still get processed before the new Activity even started.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>public class Testclass extends Activity implements OnTouchListener {
  
      GLSurfaceView glsv;
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          glsv = new GLSurfaceView();
          glSurfaceView.setOnTouchListener(this);
      }
  
      public boolean onTouch(View v2, MotionEvent event) {
          if (event.getAction() == MotionEvent.ACTION_DOWN) {
              startNextActivity();
              finish();
          }
          return true;
      }
  }
  </code></pre>
  
  <p>So if this Activity would start another instance of itself through 'startNextActivity();' and if I doubletapped the screen, the second Activity would close itself too (right after its done loading) and start a third Activity.</p>
  
  <p>All I want is that the second Activity only responds to Touch events after it is done loading. How do I achieve this?</p>
  
  <p>and obviously the example code is not completed but I think all the relevant parts are shown.</p>