How to change orientation

hi Friends…

please give me the solution for changing orientation of native app

Hi Kirtiman,

To rotate the screen to Portrait and Landscape by the following code

To get the current screen orientation value by this code
ScreenOrientation orientation= driver.getOrientation();

i tried with the above code,but nothing is happening,
do u have any video for this?or any solution…

Is your app is supporting ScreenOrientation or not?.could you please check it first.

manually, screen rotation is happening.
if we rotate device.