Bana
Bana

Reputation: 29

Android simulate touch on other program

As u know, there are many solutions and codes on stackoverflow for simulating touch on your own app you are developing.

So my question is that i wanna touch a view on other application with my own application.

How can we do this?

Just imagine i wanna click on X,Y position of the screen each X seconds.

Upvotes: 2

Views: 967

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006744

Generally speaking, you can't.

You are welcome to write an AccessibilityService. However, this has only limited ability to manipulate other apps, and it requires users to not only install your app but agree to allow your app to have wide access to all their existing app's UIs.

Upvotes: 1

Related Questions