位置API不适用于自定义/第三方应用程序

时间:2023-01-19 11:32:45

I'm trying to write a simple GPS based application for my BB 8800 (with Airtel, India).

我正在尝试为我的BB 8800(印度Airtel)编写一个简单的基于GPS的应用程序。

But for some reason my code getLocation(timeout) always returns with a non-valid location (only after timing out). I tried different combinations of criteria parameters with no success.

但由于某种原因,我的代码getLocation(超时)总是返回一个无效的位置(仅在超时后)。我尝试了不同的标准参数组合但没有成功。

I'm pretty sure that the problem is not with my code because even the BlackBerry GPS demo application does not work. However, my GPS receiver is working fine because "Wayfinder", a maps application that came bundled with my BB, works fine.

我很确定问题不在于我的代码,因为即使是黑莓GPS演示应用程序也无法正常工作。然而,我的GPS接收器工作正常,因为“Wayfinder”,一个与我的BB捆绑在一起的地图应用程序,工作正常。

To test it further, I tried running SpotFinder and Google Maps. But they did not work either. Google Maps could determine location using cell tower info but not GPS.

为了进一步测试,我尝试运行SpotFinder和Google Maps。但它们也没有用。 Google地图可以使用手机信息塔信息确定位置,但不能确定GPS。

Here are some more details about my environment, 1. Phone Model: BlackBerry 8800 2. Carrier: AirTel (India) 3. Device Version: 4.2.168 (Platform 2.3.0.54)

以下是有关我的环境的更多详细信息,1。手机型号:BlackBerry 8800 2.运营商:AirTel(印度)3。设备版本:4.2.168(平台2.3.0.54)

Can my carrier block it? [I spoke with AirTel technical support but they wouldn't budge to help developers]

我的运营商能阻止吗? [我采访了AirTel的技术支持,但他们不会帮助开发人员]

Thanks In Advance

提前致谢

2 个解决方案

#1


Some carriers (like Verizon US) blocked GPS for third party applications. Others just enabled GPS for a white list of applications (mostly their own) but deny access to GPS for all others.

一些运营商(如Verizon US)阻止了GPS用于第三方应用。其他人只是将GPS用于白名单应用程序(主要是他们自己的),但拒绝为所有其他应用程序访问GPS。

It seems your provider is doing such things.

看来你的提供商正在做这样的事情。

#2


Can your carrier block it? Absolutely, I don't know about in India, but in the U.S. some carriers can and do restrict applications from accessing the GPS if they are not "approved." That seems quite likely given the scenario you described.

你的运营商能阻止它吗?当然,我不知道在印度,但在美国,如果没有“批准”,一些运营商可以而且确实限制应用程序访问GPS。鉴于您描述的情景,这似乎很可能。

#1


Some carriers (like Verizon US) blocked GPS for third party applications. Others just enabled GPS for a white list of applications (mostly their own) but deny access to GPS for all others.

一些运营商(如Verizon US)阻止了GPS用于第三方应用。其他人只是将GPS用于白名单应用程序(主要是他们自己的),但拒绝为所有其他应用程序访问GPS。

It seems your provider is doing such things.

看来你的提供商正在做这样的事情。

#2


Can your carrier block it? Absolutely, I don't know about in India, but in the U.S. some carriers can and do restrict applications from accessing the GPS if they are not "approved." That seems quite likely given the scenario you described.

你的运营商能阻止它吗?当然,我不知道在印度,但在美国,如果没有“批准”,一些运营商可以而且确实限制应用程序访问GPS。鉴于您描述的情景,这似乎很可能。