google map 开发

1.获取MD5码,在eclipse:Window-preference-android-build中找到:Debug key store的位置,然后再终端(java环境变量已经配置)输入:
keytool -list -alias androiddebugkey -keystore "/home/smile/.android/debug.keystore" -storepass android -keypass android
然后生成MD5码了:
Certificate fingerprint (MD5): B4:ED:DA:3E:C1:59:7E:A3:0F:D7:EC:A2:CD:A0:0C:07

2.访问http://code.google.com/android/add-ons/google-apis/maps-api-signup.html,输入MD5码,生成key

3. xml文件中:<com.google.android.maps.MapView
                 android:layout_width="fill_parent"
                 android:layout_height="fill_parent"
                 android:apiKey="0JBFjNUzYoEqDk1aEJaD139r-4zkEtC27X5GHNQ"
                 />
           

你可能感兴趣的:(google map 开发)