Code example for AccessibilityServiceInfo

0
	    } 
	 
	@Override 
	protected void onServiceConnected() { 
	    System.out.println("onServiceConnected");
	    AccessibilityServiceInfo info = new AccessibilityServiceInfo();
	    info.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;
	    info.notificationTimeout = 100;
	    info.feedbackType = AccessibilityEvent.TYPES_ALL_MASK;
	    setServiceInfo(info);
	} 
 
	@Override 
	public void onInterrupt() { 
	    System.out.println("onInterrupt");
	} 
	}