Android Question Force remote screen rotation b

archeus

Member
Licensed User
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.
 

archeus

Member
Licensed User
Thx for your answer DonManfred.

Is there a way to trick the device sensor in order to simulate the human interaction to rotate screen ?
 
Top