使用LocationListener的BlackBerry GPS问题 - 单元格地点直到GPS锁定 [英] BlackBerry GPS Issue with LocationListener - Cellsite untill GPS Locks

查看:209
本文介绍了使用LocationListener的BlackBerry GPS问题 - 单元格地点直到GPS锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个针对5.0或更高版本的BlackBerry应用程序。我有一个扩展Thread类并实现LocationListener的类。



我设法在CellSite上获得gps更新以及其他模式,如Assisted和Unassisted。 b
$ b

我真正想要使用的是使用Cellsite,而其他的则不可用,然后在它们变得可用时切换到它们。



正确的路线似乎通过providerStateChanged,但这永远不会触发。

任何想法?

/ div>

使用 BlackBerryLocationProvider BlackBerryCriteria 您可以指定GPS位置,然后使用GPS启用地理位置。如果GPS不可用,系统将提供基于地理定位的修复程序(Cellsite或Wi-Fi)。这是从OS 5.0开始的。查看链接的API文档。


I am doing a BlackBerry app targeted at 5.0 and upwards. I have a class that extends Thread and implements LocationListener.

I manage to get gps updates on CellSite as well as the other modes like Assisted and Unassisted.

What I am really trying todo is use Cellsite while the others are not available and then switch to them once they become available.

The correct route seemed through "providerStateChanged" but this never fires.

Any Ideas?

解决方案

Using BlackBerryLocationProvider and BlackBerryCriteria you can specify GPS locations and then enable geolocation with GPS. The system will then provide a geolocation based fix (Cellsite or Wi-Fi) if GPS is not available. This is available starting with OS 5.0. See the linked API documentation.

这篇关于使用LocationListener的BlackBerry GPS问题 - 单元格地点直到GPS锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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