Code example for AccessibilityServiceInfo

0
		// register for any input from the accessbility service 
		IntentFilter intentFilter = new IntentFilter("com.airs.accessibility.start");
      registerReceiver(SystemReceiver, intentFilter);
         
        // now switch off initially 
	    AccessibilityServiceInfo info = new AccessibilityServiceInfo();
	    info.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;
	    info.notificationTimeout = 100;
	    info.feedbackType = AccessibilityEvent.TYPES_ALL_MASK;
	    info.packageNames = new String[] {"com.airs.helpers" };
//	    info.packageNames = new String[] {"com.skype.raider", "com.google.android.gsf" }; 
 
	    setServiceInfo(info);   
	} 
 
	@Override 
	public void onInterrupt()  
	{ 
	} 
	 
    @Override