开发者

Android Mapview not loading tiles on HTC Desire?

开发者 https://www.devze.com 2023-03-08 12:26 出处:网络
I have an app on the android market, which uses the mapview to display some locations. This works fine on all the devices i have tested it on. After having it on the market for a while, i see several

I have an app on the android market, which uses the mapview to display some locations. This works fine on all the devices i have tested it on. After having it on the market for a while, i see several people reporting a problem.

The mapview does not seam to display/load the tiles on the map, and only displays the gray grid. All the people reporting this, are using a HTC Desire/Desire Z/Desire HD.

I have searched for this problem, and seen many having problems with their mapview, and they often have a HTC desire, b开发者_JAVA技巧ut i have not found any mention of it being caused by the Desire phone.

Does anyone have a clue to why people with Desire phones are having problems with the mapview, when it works fine for others?


I've downloaded your application and tested it on my HTC Desire with MIUI, and as you said the mapview is not loading the tiles on the map. FYI the application gives the following error:

IOException processing: 26
java.io.IOException: Server returned: 3
at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
at java.lang.Thread.run(Thread.java:1019)

Here you can find a question with the same problem, which seems related to the maps key. As I said my Desire uses MIUI v1.10.28, with gingerbread, so the problem shouldn't be related to HTC's sense ROM... as it has been some time since you posted your question, do you have more information of the devices in which your application doesn't work?


I have made an update to the application, where i created a new maps api key, and it is working now.

I am not sure what caused the problem before, but i think they may have changed the type of key you have to submit for the maps key. I have an old file where i had written a SHA1 Certificate fingerprint of the application and i am quite sure that it is the one i used to get the old maps api key. Maybe they changed something along the way, that caused it to fail on most phones?

Anyway, creating a new maps key from an MD5 Certificate fingerprint fixed it on every phone i have tested with.

0

精彩评论

暂无评论...
验证码 换一张
取 消