J
J
jeston2012-02-11 10:11:10
Google
jeston, 2012-02-11 10:11:10

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"
    />

at the same time, I did not forget to add the <uses-library android:name="com.google.android.maps" /> library in the manifest and give the application access to the Internet.
As a result, when starting an activity with a map, I see the following in LogCat: 02-11 06:58:45.214: E/ActivityThread(190): Failed to find provider info for com.google.settings 02-11 06:58:45.225: E /ActivityThread(190): Failed to find provider info for com.google.settings 02-11 06:58:45.345: E/ActivityThread(190): Failed to find provider info for com.google.settings 02-11 06:58 :46.015: I/MapActivity(190): Handling network change notification:CONNECTED 02-11 06:58:46.015: E/MapActivity(190): Couldn't get connection factory client and map won't load. The activity code is minimal:


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);
  }

Has anyone come across this and know how to fix it?
Rummaging on StackOverfow, I found a couple of tips to check the receipt of the API key, but I already checked this point, so there seems to be no error here.
Thank you very much for your advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stilg, 2012-02-22
@stilg

If you collected the key through the default debug.keystore, then the password for it is “android”,
when exporting to apk, specify the default debug.keystore with this password,
otherwise rebuild the key with your keystore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question