How can I start the Accessibility Settings Page of my APP in Android?
You can manually open the accessibility settings with the following Intent (when android.content.Intent
and android.app.Intent
have both been imported):
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);startActivity(intent);
Check out the following resources for more information:
Try this:
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startActivity(intent);
Maybe the code below can help you :
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);
Or you can search the Key Word "Fragment Injection" for more information;Check out this link,it is useful for you case: