code: public void clickOnScreen(float x, float y, View view) {
  		boolean successfull = false;
  		int retry = 0;
  		SecurityException ex = null;
  
  		while(!successfull && retry < 20) {
  			long downTime = SystemClock.uptimeMillis();
  			long eventTime = SystemClock.uptimeMillis();
  			MotionEvent event = MotionEvent.obtain(downTime, eventTime,
  					MotionEvent.ACTION_DOWN, x, y, 0);
  			MotionEvent event2 = MotionEvent.obtain(downTime, eventTime,
  					MotionEvent.ACTION_UP, x, y, 0);
  			try{
  				inst.sendPointerSync(event);
  				inst.sendPointerSync(event2);
  				successfull = true;
  			}catch(SecurityException e){
  				ex = e;
  				dialogUtils.hideSoftKeyboard(null, false, true);
  				sleeper.sleep(MINI_WAIT);
  				retry++;
  				View identicalView = viewFetcher.getIdenticalView(view);
  				if(identicalView != null){
  					float[] xyToClick = getClickCoordinates(identicalView);
  					x = xyToClick[0]; 
  					y = xyToClick[1];
  				}
  			}
  		}
  		if(!successfull) {
  			Assert.fail("Click at ("+x+", "+y+") can not be completed! ("+(ex != null ? ex.getClass().getName()+": "+ex.getMessage() : "null")+")");
  		}
  	}
docs: Clicks on a given coordinate on the screen.
  
  @param x the x coordinate
  @param y the y coordinate