Skip to content Skip to sidebar Skip to footer

Google Maps Not Showing Any Map

I don't know what my problem is, the Google map is not showing I have change the project property to Google API 2.3.3 and no errors are displaying here's my code: Mapping.java pac

Solution 1:

Don't use existing map api key or anything else. You have to generate your own map api key with your md5 fingerprint code. Just have a look at below links -

  1. Android Map api key

  2. maps-api-signup

Have a look at existing answer. And, here is a best example for generating map api key with step-by-step. These may helps you surely.

Solution 2:

you have to generate your own apiKey.. follow this link if you haven't done it yet Obtaining a Google Maps Android API Key

Solution 3:

You will have to generate a MD5 key to get registered for Google Key. To generate the MD5 Key from your PC,the Steps are :


Open the command prompt and follow the steps

C:\Program Files\Java\<JDK_version_number>\bin>keytool -genkey -v -keystore projectkey.keystore   
                   -alias aliasname -keyalg RSA -keysize 2048 -validity 15000    

  //The Above path should be set Accordingly to your Machine

Enter keystore password: ------------
What is your first and last name?
[Unknown]: ------------
What is the name of your organizational unit?
[Unknown]: ------------
What is the name of your organization?
[Unknown]: ------------
What is the name of your City or Locality?
[Unknown]: ------------
What is the name of your State or Province?
[Unknown]: ------------
What is the two-letter country code for this unit?
[Unknown]: ------------

D:\android-sdk-windows-1.6_r1\tools>keytool -v -list -alias aliasname -keystore projectkey.keystore
Enter keystore password:
aliasname, Dec 7, 2010, PrivateKeyEntry,
Certificate fingerprint (MD5): CA:CF:AA:0E:5A:2B:88:C8:64:F1:FA:F7:29:21:50:FF  

Now,go Here and Register for your Google API key with that MD5 Key.

Solution 4:

just write down these line on cmd prompt to extract the MD5 fingerprint.

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

After getting MD5 fingerprint Copy the MD5 certificate fingerprint and navigate your web browser to: http://code.google.com/android/maps-api-signup.html. Follow the instructions on the page to complete the application and obtain the Google Maps key.

To use the Google Maps in your Android application, you need to modify your AndroidManifest.xml file by adding the element together with the INTERNET permission:

To display the Google Maps in your Android application, modify the main.xml file located in the res/layout folder. You shall use the element to display the Google Maps in your activity. In addition, let's use the element to position the map within the activity:

for example :

<com.google.android.maps.MapView 
        android:id="@+id/mapView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:enabled="true"
        android:clickable="true"
        android:apiKey="0l4sCTTyRmXTNo7k8DREHvEaLar2UmHGwnhZVHQ"
        />

Post a Comment for "Google Maps Not Showing Any Map"