On the basis of the accessibility function, I am creating an Android application. Because the accessibility service in Android cannot be enabled or disabled programmatically, I use the following code to direct the user to the accessibility settings page:
public static boolean gotoAccessibilitySettings(Context context) {
Intent settingsIntent = new Intent(
Settings.ACTION_ACCESSIBILITY_SETTINGS);
if (!(context instanceof Activity)) {
settingsIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
}
boolean isOk = true;
try {
context.startActivity(settingsIntent);
} catch (ActivityNotFoundException e) {
isOk = false;
}
return isOk;
}
Then, after locating the Sub Settings Label of my APP and clicking it, the Accessibility Settings Page of my APP will appear (Pic 2).
Is it possible to open the Accessibility Settings Page for my APP (Pic 2) directly?