第一頁 返回 繼續 最後一頁 概覽 圖形
Location Service(2)
Using Location Object to get Location detail
http://developer.android.com/reference/android/location/Location.html
double Latitude=0,Longitude=0,Accuracy=0;
if (lo!=null)
{
Latitude=lo.getLatitude();
Longitude=lo.getLongitude();
Accuracy=lo.getAccuracy();
ptime.setText(" "+Latitude+" "+Longitude+" "+Accuracy);
}
else
ptime.setText(" no location!");