I have developed an app and I need to test it. I have borrowed some devices from my friends and bought a few. Now problem is that I want to test it in both landscape mode and portrait mode but I don't want to keep on changing the orientation of phones every 5 minutes manually by myself.
Is there any adb command or anything else by which I can tell the phone to change its orientation? Can I fool it by simulating acceleration or any other alternative?
I am open to rooting but I prefer any solution which works on non-rooted phones.
/sys/devices/virtual/accelerometer/accelerometer/acc_fileor something similar, though I think that may require root. – Matthew Read♦ Nov 8 '12 at 17:13