I want to detect the action based on the status bar. In fact I want to limit the right of this section. i tried
mGrid.setOnTouchListener(new OnTouchListener(){
public boolean onTouch(View arg0, MotionEvent arg1){
int x = (int) arg1.getX();
int y = (int) arg1.getY();
Log.d("Screen", String.valueOf(x));
Log.d("Screen", String.valueOf(y));
switch(arg1.getAction()){
case MotionEvent.ACTION_OUTSIDE:
Log.d("tototootot", "acces dinied");
//case MotionEvent.
}
return true;
}