BlackBerry GPS Issue with LocationListener - Cellsite untill GPS Locks

吃可爱长大的小学妹 提交于 2019-12-12 01:46:19

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/11535640/blackberry-gps-issue-with-locationlistener-cellsite-untill-gps-locks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!