2010-12-06 177 views

回答

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. 
+0

這是唯一的代碼,我必須擴展到主類? – User 2011-01-30 16:52:06

相關問題