Preface:
Device: Nexus 5, Android Lollipop
Put simply, My App does capture the Accessibility events but capture rate is only around 93%.
This might look good but it is unacceptable for the kind of functionality my App is designed for.
My code:
@Override
public void onServiceConnected() {
AccessibilityServiceInfo info = new AccessibilityServiceInfo();
info.notificationTimeout = 0;
info.eventTypes = AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED;
info.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC;
info.packageNames = new String[] { "com.android.phone" };
setServiceInfo(info);
}
public void onAccessibilityEvent(AccessibilityEvent x) {
Log.e("Event", "Occurred");
}
Question:
- If you have worked with Accessibility Services before have you observed something similar?
- If missing events is a norm, is my capture rate poor ?
- If you overcame this issue, Please Please answer this, I'll buy you a pizza anywhere you are on earth......Seriously !