Hi all can any one say the tips for on swipping a image a new page should appear in android

public boolean onSingleTapConfirmed(MotionEvent e) {
fhsgrouppic. setContentView(R.layout.activity_main);
return true;

public boolean onTouchEvent(MotionEvent event) {
return super.onTouchEvent(event);

i have used this one but i am unable to assign setcontentview to an image.....

pls help me out