Code example for AccessibilityServiceInfo

0
        //To change body of implemented methods use File | Settings | File Templates. 
    } 
 
    @Override 
    protected void onServiceConnected() { 
        AccessibilityServiceInfo info = new AccessibilityServiceInfo();
        info.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;
        info.feedbackType = AccessibilityServiceInfo.FEEDBACK_ALL_MASK;
        info.notificationTimeout = 100;
        setServiceInfo(info);
    } 
 
    @Override 
    public void onInterrupt() { 
        //To change body of implemented methods use File | Settings | File Templates. 
    } 
}