Google map API key is necessary to add Google map to your any application. So, why we require this key ?
This API key is required because you have to access the Google map server. You can restrict this key only for Android app. This is free and any numbers of user can use it.
Let see how you can generate Google map API key for your Android project.
Start a new project in Android Studio and select Google Map Activity. When project open in Android Studio it open on google_maps_api.xml file by default.
You can see the instruction to generate the API key as well as the link (Third line of comment) to generate that API key. Just copy this link and paste it on any browser.
This API key is required because you have to access the Google map server. You can restrict this key only for Android app. This is free and any numbers of user can use it.
Let see how you can generate Google map API key for your Android project.
Start a new project in Android Studio and select Google Map Activity. When project open in Android Studio it open on google_maps_api.xml file by default.
You can see the instruction to generate the API key as well as the link (Third line of comment) to generate that API key. Just copy this link and paste it on any browser.
It will ask your gmail username and password, just put your email and password to login into your gmail account.
Now register your project for Google Map API in Google API Console by clicking Continue.
It will take some time to enable API, just wait for it.
After API is enabled, click on Create API Key .
It will also take some time to create API key, just wait for it.
Now your API key is ready to use just copy it and use it in your app.
You should paste this API key in your file google_maps_api.xml of your Android app.
No comments:
Post a Comment