Skip to content

Commit 0ee3bdb

Browse files
authored
Merge pull request #112471 from stevemunk/quick-android-map
Minor grammatical changes to article: Quickstart: Create an Android app with Azure Maps.
2 parents 78abd7e + 466ccdb commit 0ee3bdb

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

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

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ This article shows you how to add the Azure Maps to an Android app. It walks you
2424

2525
## Prerequisites
2626

27-
1. A subscription to [Microsoft Azure](https://azure.microsoft.com). If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
27+
1. A subscription to [Microsoft Azure]. If you don't have an Azure subscription, [create a free account] before you begin.
2828

29-
1. [Android Studio](https://developer.android.com/studio/). If you don't have Android Studio, you can get it for free from Google.
29+
1. [Android Studio]. If you don't have Android Studio, you can get it for free from Google.
3030

3131
> [!NOTE]
3232
> Many of the instructions in this quickstart were created using Android Studio Arctic Fox (2020.3.1). If you use a different version of Android Studio, the steps specific to Android Studio may vary.
@@ -35,7 +35,7 @@ This article shows you how to add the Azure Maps to an Android app. It walks you
3535

3636
Create a new Azure Maps account using the following steps:
3737

38-
1. In the upper left-hand corner of the [Azure portal](https://portal.azure.com), select **Create a resource**.
38+
1. In the upper left-hand corner of the [Azure portal], select **Create a resource**.
3939
2. In the *Search the Marketplace* box, type **Azure Maps**, then select **Azure Maps** from the search results.
4040
3. Select the **Create** button.
4141
4. On the **Create Maps Account** page, enter the following values:
@@ -58,7 +58,7 @@ Once your Azure Maps account is successfully created, retrieve the subscription
5858
3. Copy the **Primary Key** and save it locally to use later in this tutorial.
5959

6060
>[!NOTE]
61-
> For security purposes, it is recommended that you rotate between your primary and secondary keys. To rotate keys, update your app to use the secondary key, deploy, then press the cycle/refresh button beside the primary key to generate a new primary key. The old primary key will be disabled. For more information on key rotation, see [Set up Azure Key Vault with key rotation and auditing](../key-vault/secrets/tutorial-rotation-dual.md)
61+
> For security purposes, it is recommended that you rotate between your primary and secondary keys. To rotate keys, update your app to use the secondary key, deploy, then press the cycle/refresh button beside the primary key to generate a new primary key. The old primary key will be disabled. For more information on key rotation, see [Set up Azure Key Vault with key rotation and auditing].
6262
6363
:::image type="content" source="./media/quick-android-map/get-key.png" alt-text="A screenshot showing the Azure Maps Primary key in the Azure portal.":::
6464

@@ -76,15 +76,15 @@ Complete the following steps to create a new project with an empty activity in A
7676

7777
:::image type="content" source="./media/quick-android-map/3-empty-activity.png" alt-text="A screenshot that shows the Create an Empty Activity screen in Android Studio.":::
7878

79-
1. In the **Empty Activity** screen you'll need to enter values for the following fields:
79+
1. In the **Empty Activity** screen, enter values for the following fields:
8080
* **Name**. Enter **AzureMapsApp**.
8181
* **Package name**. Use the default **com.example.azuremapsapp**.
8282
* **Save location**. Use the default or select a new location to save your project files. Avoid using spaces in the path or filename due to potential problems with the NDK tools.
8383
* **Language**. Select Kotlin or Java.
8484
* **Minimum SDK**. Select `API 21: Android 5.0.0 (Lollipop)` as the minimum SDK. It's the earliest version supported by the Azure Maps Android SDK.
8585
1. Select **Finish** to create your new project.
8686

87-
See the [Android Studio documentation](https://developer.android.com/studio/intro/) for more help with installing Android Studio and creating a new project.
87+
See the [Android Studio documentation] for more help with installing Android Studio and creating a new project.
8888

8989
## Set up a virtual device
9090

@@ -96,7 +96,7 @@ To set up an Android Virtual Device (AVD):
9696
1. The **Android Virtual Device Manager** appears. Select **Create Virtual Device**.
9797
1. In the **Phones** category, select **Nexus 5X**, and then select **Next**.
9898

99-
You can learn more about setting up an AVD in the [Android Studio documentation](https://developer.android.com/studio/run/managing-avds).
99+
For more information about setting up an AVD, see [Create and manage virtual devices] in the Android Studio documentation.
100100

101101
:::image type="content" source="./media/quick-android-map/4-avd-select-hardware.png" alt-text="A screenshot that shows the Select Hardware screen in Android Virtual Device Manager when creating a new Virtual Device.":::
102102

@@ -121,14 +121,13 @@ The next step in building your application is to install the Azure Maps Android
121121
:::image type="content" source="./media/quick-android-map/project-settings-file.png" alt-text="A screenshot of the project settings file in Android Studio.":::
122122
123123
3. Open the project's **gradle.properties** file, verify that `android.useAndroidX` and `android.enableJetifier` are both set to `true`.
124-
124+
125125
If the **gradle.properties** file doesn't include `android.useAndroidX` and `android.enableJetifier`, add the next two lines to the end of the file:
126-
126+
127127
```gradle
128128
android.useAndroidX=true
129129
android.enableJetifier=true
130130
```
131-
132131

133132
4. Open the application **build.gradle** file and do the following:
134133

@@ -169,7 +168,7 @@ The next step in building your application is to install the Azure Maps Android
169168
170169
::: zone pivot="programming-language-java-android"
171170
172-
6. In the **MainActivity.java** file you'll need to:
171+
6. In the **MainActivity.java** file:
173172
174173
* Add imports for the Azure Maps SDK.
175174
* Set your Azure Maps authentication information.
@@ -277,7 +276,7 @@ The next step in building your application is to install the Azure Maps Android
277276
278277
::: zone pivot="programming-language-kotlin"
279278
280-
7. In the **MainActivity.kt** file you'll need to:
279+
7. In the **MainActivity.kt** file:
281280
282281
* add imports for the Azure Maps SDK
283282
* set your Azure Maps authentication information
@@ -397,7 +396,7 @@ Android Studio takes a few seconds to build the application. After the build is
397396
## Clean up resources
398397
399398
>[!WARNING]
400-
> The tutorials listed in the [Next Steps](#next-steps) section detail how to use and configure Azure Maps with your account. Don't clean up the resources created in this quickstart if you plan to continue to the tutorials.
399+
> The tutorials listed in the [Next Steps] section detail how to use and configure Azure Maps with your account. Don't clean up the resources created in this quickstart if you plan to continue to the tutorials.
401400
402401
If you don't plan to continue to the tutorials, take these steps to clean up the resources:
403402
@@ -412,15 +411,30 @@ If you don't plan on continuing to develop with the Azure Maps Android SDK:
412411
413412
For more code examples, see these guides:
414413
415-
* [Manage authentication in Azure Maps](how-to-manage-authentication.md)
416-
* [Change map styles in Android maps](set-android-map-styles.md)
417-
* [Add a symbol layer](how-to-add-symbol-to-android-map.md)
418-
* [Add a line layer](android-map-add-line-layer.md)
419-
* [Add a polygon layer](how-to-add-shapes-to-android-map.md)
414+
* [Manage authentication in Azure Maps]
415+
* [Change map styles in Android maps]
416+
* [Add a symbol layer]
417+
* [Add a line layer]
418+
* [Add a polygon layer]
420419
421420
## Next steps
422421
423422
In this quickstart, you created your Azure Maps account and created a demo application. Take a look at the following tutorial to learn more about Azure Maps:
424423
425424
> [!div class="nextstepaction"]
426-
> [Load GeoJSON data into Azure Maps](tutorial-load-geojson-file-android.md)
425+
> [Tutorial: Load GeoJSON data into Azure Maps Android SDK]
426+
427+
[Add a line layer]: android-map-add-line-layer.md
428+
[Add a polygon layer]: how-to-add-shapes-to-android-map.md
429+
[Add a symbol layer]: how-to-add-symbol-to-android-map.md
430+
[Android Studio documentation]: https://developer.android.com/studio/intro
431+
[Android Studio]: https://developer.android.com/studio
432+
[Azure portal]: https://portal.azure.com
433+
[Change map styles in Android maps]: set-android-map-styles.md
434+
[create a free account]: https://azure.microsoft.com/free
435+
[Create and manage virtual devices]: https://developer.android.com/studio/run/managing-avds
436+
[Manage authentication in Azure Maps]: how-to-manage-authentication.md
437+
[Microsoft Azure]: https://azure.microsoft.com
438+
[Next Steps]: #next-steps
439+
[Set up Azure Key Vault with key rotation and auditing]: ../key-vault/secrets/tutorial-rotation-dual.md
440+
[Tutorial: Load GeoJSON data into Azure Maps Android SDK]: tutorial-load-geojson-file-android.md

0 commit comments

Comments
 (0)