如何在黑莓应用程序中读取当前位置的纬度和经度?
答案 0 :(得分:1)
请看这些课程:LocationProvider,Location,QualifiedCoordinates。
LocationProvider provider = LocationProvider.getInstance(null);
Location loc = provider.getLocation(-1);
QualifiedCoordinates qc = loc.getQualifiedCoordinates();
//Call getLatitude() and getLongitude() in QualifiedCoordinates object.