问题
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