【发布时间】:2018-04-25 10:31:56
【问题描述】:
我正在将我的 Android apk 和 instrumentationTest apk 上传到 aws 设备场,但它继续在 portait 中运行我的应用程序。
在我的应用程序中,我已在清单中将方向设置为横向
android:screenOrientation="sensorLandscape"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
然后在我的测试中我运行(在@Before)
UiDevice mDevice = UiDevice.getInstance(getInstrumentation());
try {
mDevice.setOrientationLeft();
} catch (RemoteException e) {
e.printStackTrace();
}
但它仍然是纵向运行的。
这是我需要在我的应用程序中设置的内容,还是 AWS 设备场中的设置,因为我在网站或谷歌中找不到任何内容
【问题讨论】:
标签: android amazon-web-services android-orientation android-instrumentation aws-device-farm