在Android中使用Google地图API,使用代理 [英] Using the Google map API in Android, using a proxy

查看:406
本文介绍了在Android中使用Google地图API,使用代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在非常基本的应用程序中使用Google地图API。但问题是,在运行应用程序时,我只能看到网格和地图控件...地图甚至无法加载到虚拟设备中。

我在设备中运行Internet ...浏览器似乎加载得很好,所以它不是一个互联网问题。

另外,我在注册map API后获得了一个API密钥,并将其包含在我的main.xml文件中......但仍然它不显示地图...只是网格。使用互联网的权限也在清单文件中授予。

使用Google API级别的任何想法8.任何想法如何解决此问题?

thx。

编辑1 :任何人都可以帮助我解决这个问题......真的需要帮助:(



编辑2 :我在我的LogCat中发现了以下错误:

发送签入请求

登入失败: https://android.clients.google.com/ checkin (请求#0)

org.apa che.http.conn.ConnectTimeOutException:连接到/209.85.231.100:44超时



所以基本上我的连接超时...我真的不知道为什么......有人可以提供一些修复这个PLZ?(但AVD的浏览器能够完美工作,没有时间问题..网站能够正常加载)

另外,预安装的地图应用程序显示以下错误:

**网络故障**错误的远程字符串版本.GMM服务器必须托管:/strings_remote_533149424.dat

如果你知道任何方法可以解决这个问题,这将是非常有用的......

Thx。


参考: http: //code.google。 com / p / android / issues / detail?id = 3764#makechanges

不幸的是,这还没有解决方案。

Thx给所有帮助的人: )

PS:如果any1找到了使用代理的解决方案...或者其他任何方式来解决这个问题......请在这里发帖..


I am using the google map API in a very basic app. But the problem is that on running the app, I only see the grid and the map controls...the map doesnt even load in the virtual device.
I have internet running in the device...the browser seemed to be loading just fine, so it isnt an internet problem.
Also, i did obtain an API key after registering for the map API and included that in my main.xml file...but still it doesnt show the map...just grids.The permissions for using the internet are also granted in the manifest file.
Im using the Google API level 8.Any idea how to fix this?
thx.
EDIT 1: Can anyone please help me out with this...really need help :(

EDIT 2: Well I found the following error in my LogCat:
Sending checkin request
Checkin failed: https://android.clients.google.com/checkin (request #0)
org.apache.http.conn.ConnectTimeOutException: Connect to /209.85.231.100:44 timed out

So basically my connection is timing out...im not really sure why...could anyone provide some fix for this plz?( but the AVD's browser is able to work perfectly, no time out problems..sites are able to load properly)
Also, the pre-installed maps application is showing the following error:
**Network Failure** Wrong remote strings version.GMM Server must be hosting:/strings_remote_533149424.dat
If you know any way i could fix this, it would be extremely helpful...
Thx.

解决方案

Apparently if you are using a proxy, and have set that in your APN, then your AVD cannot load any application that is using the map, neither the pre-installed one, nor any created by you.
Reference: http://code.google.com/p/android/issues/detail?id=3764#makechanges
Unfortuantely there is no solution for this (yet).
Thx to all who helped :)
PS: If any1 found a solution using the proxy...or any other way to fix this...do post here..

这篇关于在Android中使用Google地图API,使用代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆