I want to write a service that is in the background, and when I click the headsetβs multimedia button, a specific ListView element from another application will be clicked.
Now I can only activate a specific action that has only a ListView element. Is it possible to trigger such a click event (think about creating any shortcuts or macros, for example AutoHotkey in windows).
I just stumbled upon this blog post: http://mylifewithandroid.blogspot.com/2009/01/generating-keypresses-programmatically.html
I also know
View.performClick()
event. I can also mention that I can see the source code of the application in which I want to make a shortcut, but I cannot change and redistribute it. If this is not possible on a vanilla android, and not at the root?
source share