Question

Here I develop one application which shows Map in Application. I show map in my app and it is working fine, but I show that country which I want to display in Map from application. So how to do it? Is it possible in Android?

Please help me.

Thanks in Advance.

Was it helpful?

Solution

First of all track you current position through LocationListener/LocationManager:

MyLocation myLocation = new MyLocation();
private void locationClick() {
    myLocation.getLocation(this, locationResult);
}

And, zoom out your location through code:

mapView.getController().setZoom(17);

Then you can see the country mentioned.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top