MapView showing in grey tiles map not showing in android google api 2.3.3

╄→尐↘猪︶ㄣ 提交于 2019-12-05 21:25:34

Use it to get the Valid API key--

that is the exact path--

keytool -list -keystore "C:\Users\XYZ\.android\debug.keystore"

Total path for cmd prompt to get the MD5 fingureprint for the GoogleMap API Key----

if you are using eclipse then--

D:\eclipse\jre\bin>keytool -list -keystore "C:\Users\XYZ\.android\debug.keystore"

MD5 fingurePrint will look like this--

 3E:F4:D6:E6:93:4D:BB:B8:62:3A:D6:0F:E0:FC:4C:65

When u get the fingurePrint number afterthat to get the API Key use this link---

http://code.google.com/android/add-ons/google-apis/maps-api-signup.html

Then u will get API key of your system and can get the Map easily instread of grids....

Use this key in your MapView.xml---

 <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

  <com.google.android.maps.MapView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/map"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:clickable="true"
      android:enabled="true"
      android:apiKey="046S_m5BQ43JIRtKiXQfldWwo2ddlU6dL6ca9SQ" />

</LinearLayout>

//instead of your view

//use this

<com.google.android.maps.MapView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/map_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:clickable="true"
      android:enabled="true"
      android:apiKey="046S_m5BQ43JIRtKiXQfldWwo2ddlU6dL6ca9SQ" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!