Answer the question
In order to leave comments, you need to log in
Error while working with Google Maps API "Failed to find provider info for com.google.settings" in android?
Colleagues, added Google Maps API support to the android application
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="my_api_key"
/>
MapView mapView;
@Override
protected void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.map);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
MapController mapController = mapView.getController();
Bundle extras = getIntent().getExtras();
float x = extras.getFloat("lattitude");
float y = extras.getFloat("longitude");
GeoPoint point = new GeoPoint((int)(x*1E6), (int)(y*1E6));
mapController.animateTo(point);
mapController.setZoom(16);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question