windows下申请android的google map key

1、生成MD5指纹

keytool -list -alias androiddebugkey -keystore "C:\Users\howie\.android\debug.keystore" -storepass android -keypass android 

若出现“keytool错误: java.lang.RuntimeException: 用法错误,and 不是合法的命令”,则注意检查是否路径中带有空格

 

生成结果为: 07:9B:37:4B:B8:0F:BF:6A:FB:D5:C1:6E:FE:A4:2E:05

 

2、申请key

到http://code.google.com/intl/zh-CN/android/add-ons/google-apis/maps-api-signup.html将md5指纹输入,申请key

0t6ne63_hGroHrVoTRYOLujU-W78n71o-Zshjkw

 

代码
<com.google.android.maps.MapView
android:layout_width="fill_parent"
android:layout_height
="fill_parent"
android:apiKey
="0t6ne63_hGroHrVoTRYOLujU-W78n71o-Zshjkw"
/>

 

 

posted on 2010-11-20 20:30  jmuguy  阅读(363)  评论(0)    收藏  举报

导航