laptop and a wrench

不具合

Initiating a fragment containing the map layout view after the app launches, and rotating the device causes the app to crash for ArcGIS Runtime SDKs for Android.

最後に公開された状態: December 2, 2021 ArcGIS Runtime SDK
不具合 ID 番号 BUG-000141674
送信されましたJuly 23, 2021
最終更新日June 5, 2024
適用対象ArcGIS Runtime SDK
見つかったバージョン100.11
オペレーティング システムAndroid
オペレーティング システムのバージョン11.x
ステータスWill Not Be Addressed

参考情報

The Fragment is not handling the orientation changes appropriately. In the Fragment and Activity lifecycles, the dispose method on the MapView is called when the Activity's onDestroy call is made with an orientation change. This is followed by the onCreate method of Fragment which attempts to add a new Fragment with MapView causing the previous Fragment and MapView to be disposed, but the previous Fragment with MapView has not been instantiated yet. Every time the device is rotated, a new Fragment with a MapView is being created and added to the FragmentManager. The previously created fragments are still in the FragmentManager and attempt to instantiate. Below is an example (one way) of handling orientation changes that ensures the MapView is resumed and the Fragment instance created from the savedInstanceState. if (savedInstanceState == null) { val fragment1 = Fragment1() val button1 = findViewById

不具合 ID: BUG-000141674

ソフトウェア:

  • ArcGIS Runtime SDK

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動