I'm trying to implement the MapView example which is defined in Android Hello Views example but now I'm facing this error:
Failed to find provider info for com.google.settings
Any idea why this is happening?
The MapView example doesn't set API key by default. So you must set it. Here is step by step:
Get MD5 from your system
%JAVA_HOME%\bin\keytool.exe -list -alias androiddebugkey -keystore "%userprofile%\.android\debug.keystore" -storepass android -keypass android
Get API key by pasting the generated MD5 to this page:
http://code.google.com/android/maps-api-signup.html
Paste the generated API key to {your_project_root}/res/layout/map.xml
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="paste_generated_api_key_here"
/>
In AndroidManifest.xml, make sure that you have the folowing tag into your application
tag:
<uses-library android:name="com.google.android.maps" />
and also the folowing tag into your manifest
tag:
<uses-permission android:name="android.permission.INTERNET" />
Refresh your project and run
Note:
More detail at http://d.android.com/guide/tutorials/views/hello-mapview.html