打开eclipse--->windows--->preferences--->android--->build
查看默认的debug keystore位置,我的是c:\documents and settings\hackang\local settings\application data\android\debug.keystore
在cmd中执行
keytool -list -alias androiddebugkey -keystore "c:\documents and settings\hackang\local settings\application data\android\debug.keystore" -storepass android -keypass android
双引号中的为你keystore位置
执行结果:
androiddebugkey, 2009-2-17, keyentry,
认证指纹 (md5): xx:xx:xx:xx:xx:xx:xx:xx.............
打开http://code.google.com/intl/zh-cn/android/maps-api-signup.html
填入你的认证指纹(md5)即可获得apikey了
layout中加入mapview
<com.google.android.maps.mapview
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apikey="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
查看默认的debug keystore位置,我的是c:\documents and settings\hackang\local settings\application data\android\debug.keystore
在cmd中执行
keytool -list -alias androiddebugkey -keystore "c:\documents and settings\hackang\local settings\application data\android\debug.keystore" -storepass android -keypass android
双引号中的为你keystore位置
执行结果:
androiddebugkey, 2009-2-17, keyentry,
认证指纹 (md5): xx:xx:xx:xx:xx:xx:xx:xx.............
打开http://code.google.com/intl/zh-cn/android/maps-api-signup.html
填入你的认证指纹(md5)即可获得apikey了
layout中加入mapview
<com.google.android.maps.mapview
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apikey="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" />