Code example for AccessibilityManager

Methods: isTouchExplorationEnabled

0
	} 
	 
	@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
	@Override 
	public boolean onHoverEvent(MotionEvent event) {
	    if (mAccessibilityManager.isTouchExplorationEnabled()) {	    	
	        return this.onTouchEvent(event);
	    } else { 
	        return super.onHoverEvent(event);
	    } 
	} 
	 
	@Override 
	public boolean onTouchEvent(MotionEvent event){
		 
		int touchX = (int)event.getX();
		int touchY = (int)event.getY();		
		 
		int action = event.getAction();
		 
		//Log.w(TAG, "Touch coordinates: " + event.getX() + ", " + event.getY());