Google Developer :Google Maps Android API v2
說明 :
Step 1. Download Google Map API
在 Eclipse 裡, 使用 Android SDK Manager, 找到 Extra , 看看 Google Play Service 是否有 installed 。
Step 2. Apply for Google Map Key
使用Google Map 的 Service 需要有簽證\證書。 證書分為兩種 Debug 與 Release。 Debug 不可以用來 Release 。 首先我們先申請Debug。Realease 方法以後再加補。
獲取的方法如下
Debug:
1. 在 cmd 下打此指令
keytool -list -v -keystore "C:\Users\your_user_name\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
*your_user_name => 你的使用者名稱。
我的 Android SDK 並不是裝在 Default Directory,但這個目錄仍是在 User\(One's User name) 底下。
* 如果 cmd 下輸入指令沒有 keytool 這個指令的話,可能是 Java 環境變數沒設。
參考: 設定Java 環境變數
成功了會跑出下列輸出
SHA1 後面就是 fingerprint
(長這樣 SHA1: BB:0D:AC:74:D3:21:E1:43:07:71:9B:62:90:AF:A1:66:6E:44:5D:75)