I am trying to set zoom level for Maps in android such that it includes all the points in my list. I am using following code.
int minLatitude = Integer.MAX_VALU
I found out the answer myself, the Zoom level was correct. I need to add following code to display all points on screen.
objMapController.animateTo(new GeoPoint(
(maxLatitude + minLatitude)/2,
(maxLongitude + minLongitude)/2 ));
The center point was not propery aligned creating problem for me. This works.