
First of all,make a project in your favorite IDE(this tutorial is based on Eclipse IDE).Here the important think is set your application build target as Google APIs.Otherwise you will not be able to use MapView widget.
Now open the main.xml in layout folder.There you don't get some MapView widget that can be dragged & dropped like the other widgets(Button,EditText etc.). You have to write xml code for the MapView. Now lets check the code...
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <com.google.android.maps.MapView android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:apiKey="Your Android Maps API key" /> </LinearLayout>