Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Google MapView shows only empty tiles

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

like image 325
Henrik Avatar asked Mar 16 '12 11:03

Henrik


2 Answers

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

like image 160
Pavandroid Avatar answered Sep 27 '22 18:09

Pavandroid


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..

like image 29
Prem Avatar answered Sep 27 '22 17:09

Prem