Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Touch event on screen

Tags:

android

touch

I want to find out any event when user touches on any screen of an android. I find out touch event for particular activity but not for all screen, please give me a solution.

like image 960
bindal Avatar asked Apr 13 '11 06:04

bindal


1 Answers

try this code

@Override
public boolean onTouchEvent(MotionEvent event) {
  // TODO Auto-generated method stub
  return super.onTouchEvent(event);
}
like image 192
kannappan Avatar answered Sep 20 '22 14:09

kannappan