Forum Discussion
Suvidh,
I hope that I got what you are looking for...
You need to disable device orientation, do something in your tested application and check that the orientation is the same. Right?
If my guess is correct, then you may try ShellExecute method provided by TestComplete and execute adb command that will disable automatic device orientation. E.g. http://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb
Is this what you are looking for?
Hi Alex,
I went through the link and executed the shell commands
1. You may first need to turn off the automatic rotation
[adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0]
Rotation was off as expected
2. Rotate to landscape
[adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1]
Rotation happened even when the rotation was off after executing then above shell command.
It didn't work any other way we can get this working.
Thanks
Suvidh
- AlexKaras8 years agoChampion Level 3
Hi Suvidh,
So... Is the problem solved or not? (I am not sure I understood this from your reply, sorry...)
- suvidhshetty8 years agoContributor
Hi,
Problem is still there.
Thanks
Suvidh
- AlexKaras8 years agoChampion Level 3
OK, then I will repeat the request from Yuriy and ask you to describe your test and the problem in detail.
I did not check it with Android documentation yet, but my current understanding from the end-user point of view is that with the auto-rotation disabled the screen will still be rotated if it is directly commanded to rotate to the given orientation from application's code.
Related Content
Recent Discussions
- 2 days agovladd1