Skip to content

Commit bc15bf7

Browse files
authored
Update quick-android-map.md
Adding a tip that will addresses a common question devs have (when the orientation of phone changes the map resets).
1 parent 2a70673 commit bc15bf7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/azure-maps/quick-android-map.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ Android Studio will take a few seconds to build the application. After the build
391391
392392
:::image type="content" source="media/quick-android-map/quickstart-android-map.png" alt-text="A screenshot showing Azure Maps in an Android application.":::
393393
394+
> [!TIP]
395+
> By default Android reloads the activity when the orientation changes, or when the keyboard is hidden. This results in the map state being reset (reload the map which resets the view, and reloads data to initial state). To prevent this from happening add the following to the mainfest: `android:configChanges="orientation|keyboardHidden"`. This will stop the activity from reloading and call onConfigurationChanged() instead when the orientation is changed or the keyboard is hidden.
396+
394397
## Clean up resources
395398
396399
>[!WARNING]

0 commit comments

Comments
 (0)