title: how to swiping to next activity
body: <p>i am using viewflipper and gesturedetector in my application for swiping the pages.i am able to swap a page. now i want to go on the next activity in my application on swapleft method.
  in the swapleft i added one method page.showNext().now i want to switch to next activity.</p>
  
  <p>here it is my activity.class     </p>
  
  <pre><code>public class eDetailing extends Activity 
  {    
  
  
      ViewFlipper page;
  
  Animation animFlipInForeward;
  Animation animFlipOutForeward;
  Animation animFlipInBackward;
  Animation animFlipOutBackward;
  
  
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) 
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      page = (ViewFlipper)findViewById(R.id.main_flipper_view);
  
      animFlipInForeward = AnimationUtils.loadAnimation(this, R.anim.flipin);
      animFlipOutForeward = AnimationUtils.loadAnimation(this, R.anim.flipout);
      animFlipInBackward = AnimationUtils.loadAnimation(this, R.anim.flipin_reverse);
      animFlipOutBackward = AnimationUtils.loadAnimation(this, R.anim.flipout_reverse);
  
  
      //findViewById(R.id.main_linear).setOnClickListener(this);
  
  
  }
  
  private void SwipeRight(){
      page.setInAnimation(animFlipInBackward);
      page.setOutAnimation(animFlipOutBackward);
      page.showPrevious();
  }
  
  
  private void SwipeLeft(){
      page.setInAnimation(animFlipInForeward);
      page.setOutAnimation(animFlipOutForeward);
      page.showNext();
  
  }
  
  @Override
  public boolean onTouchEvent(MotionEvent event) {
  
  
      return gestureDetector.onTouchEvent(event);
  }
  
  SimpleOnGestureListener simpleOnGestureListener 
  = new SimpleOnGestureListener(){
  
      @Override
      public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
              float velocityY) {
  
          float sensitvity = 50;
          if((e1.getX() - e2.getX()) &gt; sensitvity){
              SwipeLeft();
          }else if((e2.getX() - e1.getX()) &gt; sensitvity){
              SwipeRight();
          }
  
          return true;
      }
  
  };
  
  GestureDetector gestureDetector
  = new GestureDetector(simpleOnGestureListener);
  </code></pre>
  
  <p>}</p>
  
  <p>here it is my xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" android:orientation="horizontal"&gt;
  
   &lt;ViewFlipper 
        android:id="@+id/main_flipper_view"
      android:layout_height="540dip" android:layout_width="1020dip"&gt;
         &lt;LinearLayout
         android:layout_height="fill_parent"
         android:layout_width="fill_parent"
         android:orientation="horizontal"&gt;
          &lt;ImageView android:id="@+id/main_imageview" android:background="@drawable/img_main" android:layout_height="fill_parent" android:layout_width="fill_parent"&gt;&lt;/ImageView&gt;
         &lt;/LinearLayout&gt;
   &lt;/ViewFlipper&gt;
  </code></pre>
  
  <p></p>
  
  <p>and i am using flipin,flipout,flipinreverse,flipoutreverse xml files in anim.
  could anyone have an idea?</p>
  
  <p>Also i want to add menu on the activity and menu will operate different pages.
  is this possible with page swiping effect using viewflipper and gesturedetector?</p>
  
  <p>thanks in advance.</p>