As already mentioned here: How to launch the accessibility settings page of my application in Android? I can open the application access settings directly with this code:
Intent intent = new Intent(); intent.setClassName("com.android.settings", "com.android.settings.Settings"); intent.setAction(Intent.ACTION_MAIN); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, "the fragment which you want show"); intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS, extras); startActivity(intent);
but I tested many things like application name, package name, service class name, etc. instead of "the snippet you want to show" but didn't work.
source share