List of usage examples for android.accessibilityservice AccessibilityServiceInfo FLAG_INCLUDE_NOT_IMPORTANT_VIEWS
int FLAG_INCLUDE_NOT_IMPORTANT_VIEWS
To view the source code for android.accessibilityservice AccessibilityServiceInfo FLAG_INCLUDE_NOT_IMPORTANT_VIEWS.
Click Source Link
From source file:net.grayswander.rotationmanager.RotationManagerService.java
@Override protected void onServiceConnected() { super.onServiceConnected(); //Configure these here for compatibility with API 13 and below. AccessibilityServiceInfo config = new AccessibilityServiceInfo(); config.eventTypes = AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED; config.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC; if (Build.VERSION.SDK_INT >= 16) //Just in case this helps config.flags = AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; setServiceInfo(config);/*from w w w . j a v a 2 s . c o m*/ this.context = getApplicationContext(); PreferenceManager.setDefaultValues(context, R.xml.preferences, false); configuration = new Configuration(this.context); this.resources = context.getResources(); }