views:

645

answers:

5

Hi,

I followed this guide here perfectly and have gone through it again but when I run the program on my google avd the page loads but only grey tiles appear and it doesn't show a map which it should.

Does anyone have any ideas?

Thanks

A: 

Are you sure you have the Internet permission?

MrSnowflake
yeah i have both everything correctly as it should be. the apiKey, the INTERNET permission, and the googlemaps library in the manifest. I've followed the guide countless times and I still get the same problem. the grey tiles....I dont think anyone has an answer for it?
Capsud
What does logcat say?
MrSnowflake
04-16 19:26:07.693: ERROR/ActivityThread(204): Failed to find provider info for com.google.settings04-16 19:26:07.723: ERROR/ActivityThread(204): Failed to find provider info for com.google.settings04-16 19:26:07.803: ERROR/ActivityThread(204): Failed to find provider info for com.google.settings04-16 19:26:07.933: DEBUG/ddm-heap(210): Got feature list request04-16 19:26:08.723: INFO/MapActivity(204): Handling network change notification:CONNECTED04-16 19:26:08.733: ERROR/MapActivity(204): Couldn't get connection factory client
Capsud
+1  A: 

You either have the wrong value for android:apiKey in your MapView, or you do not have the INTERNET permission, or you do not have Internet access.

CommonsWare
A: 

If you're are using the debug keystore to sign your app you need to generate a key for it too, in addition to the cert you plan to use for production.

Jason Knight
yeah i've generated a key for it though and have entered it into the xml layout like this <com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="0dapFvEPy0bINLwiitBeJe_Zw-_7-vOspBtp5yA" />am i right? thats everything isn't it?
Capsud
A: 

I was facing the same issue a couple of days ago and figured out that something related to APK signing was acting weird. The solution was to set the “Custom debug keystore” setting (empty by default) to the same value as the “Default debug keystore” in the Eclipse preferences.

tg
good man that worked thanks alot!!
Capsud
A: 

I had the same problem : grey tiles and not map. My solution was to move : < uses-permission android:name="android.permission.INTERNET" /> outside < application>< /application>; it works now ! I hope it can help anybody !

Louis