Reputation: 31
How to open and perform click on other app packages while my app stays on background.
(Transparent layouts? some service app?) As long as the users sees the clicks generated by my app and performed on other apps. If I open some package like com.game.tetris , I would lose controls to the just launched activity. Or is it so? How my app could inject some extra commands?
Could some sort of service app be made that would launch other apps and send touch commands to it? At least something like this can be done with monkey / monkeyrunner tools, but how to simulate clicks on the screen from the code?
Steps: 1. Open the package com.game.tetris - (Easily done). 2. Click for e.g. 10 times on the coordinates [200, 300} on the screen of the opened app, (How?). 3. When done, pop the own app back on the screen.
Upvotes: 3
Views: 4244
Reputation: 1007265
How to open and perform click on other app packages while my app stays on background.
Fortunately, this is not possible, for obvious security reasons, except perhaps by apps running on rooted devices.
Upvotes: 3