I want to write a service that sits in the background and when headset media button is pressed some specific ListView element from different app will be clicked.
Right now I'm only able to activate some specific Activity that has only ListView element. Is it possible to trigger such an click event (consider creating some kind of shortcuts or macros e.g. like AutoHotkey in windows)
I've only came across this blog post: http://mylifewithandroid.blogspot.com/2009/01/generating-keypresses-programmatically.html
I'm also aware of
View.performClick()
event. I can also mention that I can see the source code of the app I want to make shortcut to but I can't modify it and redistribute it. If it's not possible on a vanilla android than maybe rooted?