Android Mapview 无法在 HTC Desire 上加载图块?

发布于 2024-11-09 06:47:08 字数 300 浏览 2 评论 0原文

我在android市场上有一个应用程序,它使用mapview来显示一些位置。这在我测试过的所有设备上都运行良好。它在市场上上市一段时间后,我看到有几个人报告了一个问题。

地图视图不会在地图上显示/加载图块,而仅显示灰色网格。所有报告此问题的人都使用 HTC Desire/Desire Z/Desire HD。

我搜索过这个问题,看到很多人的地图视图有问题,而且他们经常有 HTC Desire,但我没有发现任何提及它是由 Desire 手机引起的。

有谁知道为什么使用 Desire 手机的人会遇到地图视图问题,而其他人却可以正常使用?

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, but 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

丢了幸福的猪 2024-11-16 06:47:08

我已经下载了您的应用程序并在带有 MIUI 的 HTC Desire 上进行了测试,正如您所说,地图视图未加载地图上的图块。
仅供参考,应用程序出现以下错误:

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)

在这里您可以找到问题 有同样的问题,这似乎与地图键有关。
正如我所说,我的 Desire 使用 MIUI v1.10.28,带有姜饼,所以问题不应该与 HTC 的 sense ROM 有关...因为您发布问题已经有一段时间了,您是否有更多有关设备的信息您的哪个应用程序不起作用?

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?

黎歌 2024-11-16 06:47:08

我已经对应用程序进行了更新,我在其中创建了一个新的地图 api 密钥,并且它现在正在运行。

我不确定之前是什么导致了问题,但我认为他们可能更改了您必须为地图密钥提交的密钥类型。
我有一个旧文件,我在其中编写了应用程序的 SHA1 证书指纹,并且我非常确定它是我用来获取旧地图 api 密钥的文件。也许他们一路上改​​变了一些东西,导致它在大多数手机上失败?

不管怎样,从 MD5 证书指纹创建一个新的地图密钥修复了我测试过的每部手机上的问题。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文