Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top