官术网_书友最值得收藏!

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:

  1. Open the Google Developer Console from https://console.developers.google.com. Click on the Create Project button.
  2. A new dialog box will appear. Give your project a name and a unique project ID. Then, select Create:
    Registering in the Google Developer Console
  3. 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.
    Registering in the Google Developer Console
  4. Then, scroll down and enable Google Maps Android API v2:
    Registering in the Google Developer Console
  5. 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:
    Registering in the Google Developer Console
  6. 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 is com.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.
  7. You should enter the value as shown in the following screenshot:
    Registering in the Google Developer Console
  8. 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:
    Registering in the Google Developer Console
  9. Note down the API Key from the screen. It will be similar to this: AIzaSyAdJdnEG5vfo925VV2T9sNrPQ_rGgIGnEU.
主站蜘蛛池模板: 兴城市| 甘洛县| 鸡泽县| 木里| 保山市| 个旧市| 新田县| 尚义县| 普定县| 民权县| 新邵县| 桐城市| 苗栗市| 巩义市| 林西县| 佛坪县| 青田县| 富蕴县| 瑞金市| 云阳县| 阿鲁科尔沁旗| 库尔勒市| 泌阳县| 白水县| 玉田县| 饶阳县| 潜江市| 常宁市| 连城县| 衡阳市| 宜春市| 蚌埠市| 西乌珠穆沁旗| 湘潭市| 将乐县| 土默特左旗| 平度市| 凤山县| 广河县| 台中县| 桐梓县|