How to get Android's events such as click,move or others
<p>my purpose is:A service run in background to count times of screen click or move in one day,even other application's click event.
could anyone tell me how to get these event?
until now, my thought is WindowManager.LayoutParams, FLAG_NOT_TOUCH_MODAL and FLAG_WATCH_OUTSIDE_TOUCH.</p>
