SelvaMariappan
SelvaMariappan

Reputation: 1334

android map not display

I am working on integrating google maps into my android app.

It was working fine.

However, after some days my map is not displaying and I don't know why?

Can anybody suggest me why?

I had not changed anything in my code.

Thanks in advance.

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey=""/>

Upvotes: 1

Views: 78

Answers (3)

nayab
nayab

Reputation: 2380

Generate and Add you own key

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="Your Maps API Key goes here"
/>

Go throught these links,hope it helps you

link for maps intro

link to Generate key for map

Upvotes: 0

Chris
Chris

Reputation: 1311

Just generate a new key and use it again in your xml. It should fix your problem.

Upvotes: 1

Awais Tariq
Awais Tariq

Reputation: 7754

Did you refreshed your android debug key? This happens when you change the work environment or just delete .android folder from disk. Try creating the new key for maps. For your ease here is the command:

C:\Program Files\Java\jdk1.7.0_07\jre\bin>keytool.exe -list -v -alias androiddebugkey -keystore C:\Users\User.android\debug.keystore -storepass android -keypass android

Upvotes: 1

Related Questions