7

I'm tying to develop a simple app that shows a map.

I obtained the debug.keystore API-Key and triple checked it for correctness.
I also exported the project as apk and used a custom keystore with associated API-Key.

I have the following permissions set:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />

But on my devices and in the emulator are still only empty tiles showing.

EDIt:
Log Cat:

03-19 10:29:09.554: W/System.err(1396): IOException processing: 26
03-19 10:29:09.554: W/System.err(1396): java.io.IOException: Server returned: 3
03-19 10:29:09.570: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
03-19 10:29:09.570: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
03-19 10:29:09.578: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
03-19 10:29:09.585: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
03-19 10:29:09.593: W/System.err(1396):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
03-19 10:29:09.601: W/System.err(1396):     at java.lang.Thread.run(Thread.java:1019)

Theese exceptions repeat rapidly.

Proxy issues or internet problems are not present. The map application works.

maybe somebody can help.

Greets
Henrik

2
  • afaik there is a message about wrong api-key in the log. Do you have that?
    – zapl
    Mar 16, 2012 at 11:47
  • Can you show us your logcat? maybe you have some warnings on errors on it..
    – SERPRO
    Mar 16, 2012 at 11:48

4 Answers 4

4

The only reason for Empty tiles is the problem with key or proxy or internet issues.

Check if the normal maps application is working perfectly in your simulator. If yes then the problem is with your Key. or else the problem is with proxy or internet.

Don't forget to create the simulator with Google API's

Follow the below link care fully for more info.

http://developer.android.com/resources/tutorials/views/hello-mapview.html

3
  • The Map key is different for each and every system
    – Pavandroid
    Mar 16, 2012 at 11:57
  • I know. I changed the develop computer and created two new keys. (one for debug keystore, one for custom keystore)
    – Henrik
    Mar 19, 2012 at 9:35
  • Thanks Pavandroid, your suggestion of creating a simulator with Google API's has solved the problem. Once I have created the Simulator, it started working in my mobile as well.
    – Buddha
    Nov 16, 2012 at 18:05
2

I face this problem and Pavandroid is absolutely right. Map Key is the problem in your case. You refer this link, it has step by step explanation of Map Key and Mapview.

http://www.codeproject.com/Articles/112044/GPSLocator-App-to-Find-Current-Nearest-Location-us

Hope this will help you..

2
  • As I said: the API key can't be the problem. I checked it and tried a new one with a not debug certificate and the associated key.
    – Henrik
    Mar 19, 2012 at 9:27
  • 1
    just the log cat you see above. everything I found in the net said that the API key is wrong but thats not my error.
    – Henrik
    Mar 19, 2012 at 9:45
0

Add this permission in your manifest file

<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
0
  1. Have you checked LogCat? May be you can find errors there with error codes you can trace back to the documentation. For eg you could have something like; onConnectionFailed: ConnectionResult.getErrorCode() = 4 and this you can trace over here ConnectionResult Reference - Google

  2. Make sure your API key is correct. Google API v2 Signup

  3. In case you are using MapView, make sure you are following the proper guidelines. Similar answer here: Detailed answer on another question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.