申請Android Maps API Key

要使用Android Maps API,首先需要申請一個API Key。
官方文件網址
 
 
首先,我們要找到SDK tools的debug.keystore文件
XP:C:/Documents and Settings/<User>/Local Settings/Application Data/Android/debug.keystore
Vista:C:/Users/<User>/AppData/Local/Android/debug.keystore
OS/Linux: ~/.android/debug.keystore
 
在Dos模式下輸入如下指令獲得MD5碼:
keytool -list -alias androiddebugkey -keystore “文件路徑” -storepass android -keypass android。
或者輸入keytool -list -keystore debug.keystore,然後輸入密碼:android。
其中“文件路徑”輸入剛纔的debug.keystore文件路徑
 
獲取MD5過程如下圖:
如何申請Android <wbr>Maps <wbr>API <wbr>Key
 

最後,到申請API Key的網頁輸入MD5碼
http://code.google.com/intl/zh-TW/android/maps-api-signup.html(臺灣)
如何申請Android <wbr>Maps <wbr>API <wbr>Key 
 
使用時,在代碼中加入
android:apiKey=“申請到的Key值”
例:

l

 

 轉載於:http://blog.sina.com.cn/s/blog_4c5f85000100h6pz.html並添加部分內容


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章