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

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.
主站蜘蛛池模板: 怀来县| 景宁| 清原| 含山县| 五华县| 龙泉市| 钟祥市| 会东县| 祥云县| 定日县| 北川| 荃湾区| 丘北县| 惠安县| 和龙市| 长白| 南和县| 盖州市| 黄山市| 静安区| 深水埗区| 鞍山市| 鄂托克前旗| 达日县| 双城市| 阿勒泰市| 东丽区| 海伦市| 孟连| 渭南市| 蒙自县| 定边县| 白水县| 奉节县| 花垣县| 凤山市| 琼海市| 黄山市| 泽普县| 江孜县| 曲阳县|