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 = AccessibilityServiceInfo.FEEDBACK_VISUAL;
	    info.packageNames = new String[] {"com.airs.helpers" };
//	    info.packageNames = new String[] {"com.skype.raider", "com.google.android.gsf" }; 
 
	    setServiceInfo(info);   
	} 
 
	/* 
	 * Called when interrupting the service 
	 * @see android.accessibilityservice.AccessibilityService#onInterrupt() 
	 */ 
	@Override 
	public void onInterrupt()