im trying to use google Map in my android application.
I have added two permission for user :INTERNET and ACCESS_FINE_LOCATION”
and also :
“uses-library android:name=”com.google.android.maps”
here is my activity for showing the map:
public class SportEventActivity extends MapActivity {
private MapController mapController;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sportevent);
Bundle extras = getIntent().getExtras();
if (extras != null) {
// Reads the parameters to this view
String sportName = extras.getString(Utility.SPORT_NAME);
String venueName = extras.getString(Utility.VENUE_NAME);
String startDate = extras.getString(Utility.START_DATE);
String endDate = extras.getString(Utility.END_DATE);
final String latitude = extras.getString(Utility.LATITUDE);
final String longitude = extras.getString(Utility.LONGITUDE);
TextView text1 = (TextView) findViewById(R.id.sedSportName);
text1.setText("Sport: " + sportName);
TextView text2 = (TextView) findViewById(R.id.sedVenue);
text2.setText("Venue: " + venueName);
TextView text3 = (TextView) findViewById(R.id.sedStartDate);
text3.setText("Start date: " + startDate);
TextView text4 = (TextView) findViewById(R.id.sedEndDate);
text4.setText("End date: " + endDate);
MapView mapView = (MapView) findViewById(R.id.mapview2);
mapView.setBuiltInZoomControls(true);
mapView.setStreetView(true);
this.mapController = mapView.getController();
this.mapController.setZoom(16);
Double lat = getCoordinate(latitude) * 1E6;
Double lng = getCoordinate(longitude) * 1E6;
mapController.setCenter(new GeoPoint(lat.intValue(), lng.intValue()));
}
}
@Override
protected boolean isRouteDisplayed() {
return false;
}
private Double getCoordinate(String coordinate) {
return Double.parseDouble(coordinate);
}
}
and also you can find the layout code related to this activity :
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1" android:id="@+id/sedLayout">
<TableRow>
</TableRow>
<TableRow>
<TextView android:layout_column="1" android:padding="3dip"
android:text="Sport name" android:id="@+id/sedSportName" />
<TextView android:gravity="right" android:padding="3dip" />
</TableRow>
<TableRow>
<TextView android:layout_column="1" android:padding="3dip"
android:text="Venue" android:id="@+id/sedVenue" />
<TextView android:gravity="right" android:padding="3dip" />
</TableRow>
<TableRow>
<TextView android:padding="3dip" />
<TextView android:padding="3dip" android:text="Start Date"
android:id="@+id/sedStartDate" />
</TableRow>
<TableRow>
<TextView android:padding="3dip" />
<TextView android:padding="3dip" android:text="End Date"
android:id="@+id/sedEndDate" />
<TextView android:gravity="right" android:padding="3dip" />
</TableRow>
<TableRow>
<TextView android:padding="3dip" />
<View android:layout_height="2dip" android:background="#FF909090" />
<TextView android:padding="3dip" />
</TableRow>
<TableRow>
</TableRow>
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview2" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:clickable="true"
android:apiKey="0aULnfycQonb-l_B1QlcK8u4POo4_oKjnmqMU1Q" />
</TableLayout>
I can see the map, but the problem is that when I see the map, it show one chess chart on the map. I have attached a screenshot form the result. if any body why it show me the map with a borders, please give me a solution.

I think this is because you are inflating the mapview inside your TableLayout (but outside a TableRow). I would wrap the whole thing in a vertically oriented RelativeLayout, put the TableLayout first and then the mapview second.
I have duplicated your layout exactly and haven’t had the problem you are seeing. The only difference is the coordinates I am centering the map with:
If you post the coordinate string are parsing and passing into setCenter I can test if that is the problem. In which case it seems like a bug: