I am developing an app which uses the accessibility api in Android. I am having a bit of a problem while guiding the user to enable the service. The only thing I found so far is :
final Intent intent = new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivityForResult(intent, 0);
intent.addCategory(Intent.CATEGORY_DEFAULT);
startActivity(intent);
However this only takes us to the Accessability menu. I would like to automate the steps needed. At the moment, the steps to enable (after exiting my app) are :
- User is taken to settings
- User clicks on My accessibility service
- User clicks on the ON toggle
- User clicks on back button (to get back to main accessibility)
- User clicks on back button (to get back to the app)
I would like to reduce this so that I directly take him/her to the screen where he can see the accessibility toggle button
so it would be like
- User clicks on the ON toggle
- User clicks on back button (to get back to my app)
Any idea how I can do this directly, without going to the main accessibility service?
As far as I know you can only take them to the list of accessibility services. You cannot automate much of the accessibility stuff because of the implications it has. So you are automating it as far as you can.