A archeus Member Licensed User Longtime User May 11, 2018 #1 Hi, I know it exists the function setScreenRotation that we can use inside an Activity to force screen rotation. I also know that we cannot use this function inside a Service. I would know if there is a possibility to force screen rotation of phone / tablet via a Background service to an Activity own by another app (more precisely when using browser) . Maybe simulate the human movement to turn the phone / table (accelerator ?). But I don't know on which function / object rely. My idea is to automate a little bit some recurrent tasks when doing QA testing on mobile devices. Thanks in advance for yours answers.
Hi, I know it exists the function setScreenRotation that we can use inside an Activity to force screen rotation. I also know that we cannot use this function inside a Service. I would know if there is a possibility to force screen rotation of phone / tablet via a Background service to an Activity own by another app (more precisely when using browser) . Maybe simulate the human movement to turn the phone / table (accelerator ?). But I don't know on which function / object rely. My idea is to automate a little bit some recurrent tasks when doing QA testing on mobile devices. Thanks in advance for yours answers.
DonManfred Expert Licensed User Longtime User May 11, 2018 #2 archeus said: own by another app Click to expand... no Upvote 0
A archeus Member Licensed User Longtime User May 11, 2018 #3 Thx for your answer DonManfred. Is there a way to trick the device sensor in order to simulate the human interaction to rotate screen ? Upvote 0
Thx for your answer DonManfred. Is there a way to trick the device sensor in order to simulate the human interaction to rotate screen ?
DonManfred Expert Licensed User Longtime User May 11, 2018 #4 I don´t think that this is possible. Upvote 0