- Learning Android Google Maps
- Raj Amal W.
- 250字
- 2025-02-23 13:00:43
Registering in the Google Developer Console
Registration is one of the most important steps in our process. Our application will not function without obtaining an API key from the Google Developer Console. Follow these steps to obtain the API key:
- Open the Google Developer Console from https://console.developers.google.com. Click on the Create Project button.
- A new dialog box will appear. Give your project a name and a unique project ID. Then, select Create:
- As soon as your project is created, you will be redirected to the project dashboard. On the left-hand side, under the APIs & auth section, select APIs.
- Then, scroll down and enable Google Maps Android API v2:
- Next, under the same APIs & auth section, select Credentials. Now, select Create new key under Public API access, and then select Android key as shown in the following dialog:
- In the next window, enter the SHA1 fingerprint we noted in our previous section followed by a semicolon and the package name of the Android application we wish to register. For example, my SHA1 fingerprint value is
C9:44:2E:76:C4:C2:B7:64:79:78:46:FD:9A:83:B7:90:6D:75:94:33
, and package name of the app I wish to create iscom.raj.map
. I will then enter it as this:C9:44:2E:76:C4:C2:B7:64:79:78:46:FD:9A:83:B7:90:6D:75:94:33;com.raj.map
. - You should enter the value as shown in the following screenshot:
- Finally, select Create. Now our Android application will be registered with the Google Developer Console, and it will display a screen similar to what is shown here:
- Note down the API Key from the screen. It will be similar to this:
AIzaSyAdJdnEG5vfo925VV2T9sNrPQ_rGgIGnEU
.