How to make the google map in android?
<p>i have make one application for google map.</p>

<p>i am using lattitude and longitude as the position.
but i am unable to show the google map,</p>

<p>can anyone help me , whats wrong with my code,</p>

<p>the code is given below:</p>

<pre><code>package com.googlemaps;

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 GooglemapsActivity extends MapActivity{
/** Called when the activity is first created. */

MapController mControl;
GeoPoint GeoP;
MapView mapV;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    mapV = (MapView) findViewById(R.id.mapView);
    mapV.displayZoomControls(true);
    mapV.setBuiltInZoomControls(true);

    double lat = 40.8;
    double longi = 96.666;

    GeoP = new GeoPoint( (int)(lat * 1E6), (int) (longi * 1E6));

    mControl = mapV.getController();
    mControl.animateTo(GeoP);
    mControl.setZoom(13);


}

@Override
protected boolean isRouteDisplayed() {      
    return false;
}
}
</code></pre>

<p>and the xml file is: </p>

<p>main.xml</p>

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

&lt;com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0acFPt8mdFAjqGq9AuToZIgkd4b8jxUM0K8mg0Q"
/&gt;

&lt;/LinearLayout&gt;
</code></pre>
