Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top