Blackberry 응용 프로그램에서 GPS로부터 현재 위치를 얻는 방법. 나는 Locationmanager method
에서 작업을 잘하려고했지만 내 장치 (폭풍 2는 wifi를 사용함)에서 현재의 lat를 오랫동안 얻을 수 없다.Blackberry 응용 프로그램에서 GPS의 현재 위치를 얻으십시오.
나는 폭풍 문제를보고 처음에 이걸 발견
private class LocationListenerImpl implements LocationListener {
public void locationUpdated(LocationProvider provider, Location location) {
if (location.isValid()) {
heading = location.getCourse();
longitude = location.getQualifiedCoordinates().getLongitude();
latitude = location.getQualifiedCoordinates().getLatitude();
altitude = location.getQualifiedCoordinates().getAltitude();
speed = location.getSpeed();
// This is to get the Number of Satellites
String NMEA_MIME = "application/X-jsr179-location-nmea";
satCountStr = location.getExtraInfo("satellites");
if (satCountStr == null) {
satCountStr = location.getExtraInfo(NMEA_MIME);
}
// this is to get the accuracy of the GPS Cords
QualifiedCoordinates qc = location.getQualifiedCoordinates();
accuracy = qc.getHorizontalAccuracy();
}
}
public void providerStateChanged(LocationProvider provider, int newState) {
// no-op
}
}
정보가 충분하지 않음 -이 GPS가 켜져? 코드가 블랙 베리 방식을 따르고 있습니까? 요청하지 않은 응용 프로그램에 필요한 사용 권한이 있습니까? – KevinDTimm
GPS를 사용할 수 있습니다. 네 코드는 블랙 베리 방식으로 GPS 시스템에서 오랫동안 송신 한 후 시뮬레이터에서 작동합니다. 세 번째는 허가에 관한 것입니까? 나는 네가 말하는 것을 허락 할 수 있을지 모르겠다. – Hitarth
당신이 어떤 생각인지 알고 싶다면 – Hitarth