How do I enable a button as an accessibility feature?
I developed an Android app using kotlin. In the app, the user presses a button which prompts the user to say something. The user's speech is then taken as input to another function. This initially worked under the class MainActivity but when I changed the app so that it becomes an accessibility service, the button stopped working. Any idea how I can solve this problem? I also set the flags but still the button won't work mIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK