For some reason I cannot get my first maps application to work. I have
gone though the full process of getting the MD5 fingerprint for the
debug.keystore, registered for the key on the website, put it into the
xml file. Even had changed my computer's locale to US English. I also
signed the application with my private key and pushed it via ADB to
the emulator. All attempts so far resulted only in the grey Google
Maps background with the tiles not loading. JAVA_HOME environment
variable points to my JDK file. Not sure what else I can do. Even
upgraded from SDK 1.1 to 1.5. No improvement. I am really stuck here.

I am running WIN XP, Eclipse ganymede, SDK 1.5 r2, with the latest
ADT.

Here is my class file code:

package com.mellagio.maps;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.app.Activity;
import android.os.Bundle;

public class GoogleMaps1 extends MapActivity {
    private MapView mapView;
    private MapController mapController;

        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map_layout);
        mapView = (MapView)findViewById(R.id.map_view);
    }

    @Override
    protected boolean isRouteDisplayed() {
        //IMPORTANT: this method must return true if your Activity
        //is displaying driving directions. Otherwise return false.
        return false;
    }
}

And here the XML file:

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

        <com.google.android.maps.MapView
        android:id="@+id/map_view"
        android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:enabled="true"
    android:clickable="true"
    android:apiKey="MY MAPS API KEY WOULD COME HERE"
    />

</LinearLayout>

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to