I am using following code to show my location on google maps
String uri ="geo:" + location.getLatitude() + "," + location.getLongitude() + "?z=" + 3;
intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);
But it shows map on whole screen, which I don’t want. Is it possible to show map on half screen of your android phone without using com.google.android.maps.MapView or without importing maps library to my project.
Plz help me out if any one knows the solution.
Regards.
You have to use a Custom
MapActivity, that is create aActivitythat extendsMapActivityand plot the points withxmlhavingMapViewwith half of the screen, what you are using isAndroidsinbuiltway of displaying Map. By, this way you won’t be able to show the Map in half of the screen.