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.
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.