Please enhance the ArcGIS for Android SDK template and samples v1.1.1 for Eclipse to include the configuration change of screen orientation in the Android manifest file, which can prevent an application crash when the screen of an Android device is rotated.
上次发布: August 25, 2014ArcGIS Runtime SDK for Android
漏洞 ID 编号
NIM081301
已提交
May 31, 2012
上次修改时间
June 11, 2020
适用范围
ArcGIS Runtime SDK for Android
找到的版本
1.1
编程语言
Java
操作系统
Windows
操作系统版本
XP 64 Bit
状态
In Product Plan
该问题已添加到开发团队的解决问题中。 对于具有此状态的问题,将在近期版本(下一个或两个版本)中进行解决。 检查问题的“其他信息”或“备用解决方案”部分,寻找可以完全解决此问题的有用信息。
解决办法
1. Add android:configChanges="orientation" to the activity's manifest node in AndroidMainfest.xml. For example:<activity android:name=".RotateMapActivity"android:configChanges="orientation"android:label="@string/app_name">2. Override the onConfigurationChanged() method. For example:@Overridepublic void onConfigurationChanged(Configuration newConfig){super.onConfigurationChanged(newConfig);}