on touch event in android -


i have screen showing information version.there no controll in screen.i want finish activity when tap on screen.can me plz...

make activity implement ontouchlistener:

public class myactivity extends activity implements ontouchlistener{  // code goes here  @override     public boolean ontouch(view arg0, motionevent arg1) {         this.finish();         return false;     } } 

Comments