I'm working with maps for the first time, but all I get is this grid:

http://i1190.photobucket.com/albums/z449/m75214/blankgrid.png

Any ideas?

Here's my code:

import com.google.android.maps.GeoPoint;
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 hmm extends MapActivity {
        private MapController mapController;
        private MapView mapView;

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

                mapView.setBuiltInZoomControls(true);
                mapView.setStreetView(true);
                mapController = mapView.getController();
                mapController.setZoom(14);
                int lat=(int) (32.969185f * 1E6);
                int lng=(int) (-96.60576f * 1E6);
                GeoPoint point = new GeoPoint(lat, lng);
                mapController.animateTo(point);
    }

        @Override
        protected boolean isRouteDisplayed() {
                // TODO Auto-generated method stub
                return false;
        }
}

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

Reply via email to