Code example for AccessibilityServiceInfo

0
	@Inject 
	AccessibilityHandler handler;
 
	@Override 
	protected void onServiceConnected() { 
		AccessibilityServiceInfo info = new AccessibilityServiceInfo();
		info.feedbackType = AccessibilityServiceInfo.FEEDBACK_HAPTIC;
		info.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;
		setServiceInfo(info);
 
		// Setup injection manually since we do not extend a Robo class 
		RoboGuice.injectMembers(getApplicationContext(), this);
	}; 
 
	@Override 
	public void onAccessibilityEvent(AccessibilityEvent event) {
		handler.handle(event, getApplicationContext());
	} 
 
	@Override 
	public void onInterrupt() {