2011-09-29 46 views

回答

0

您可能會實現android.location.LocationListener接口 這將跟蹤用戶的當前位置。

只需點擊鼠標,就可以從此監聽器調用最後一個位置。

LocationManager locationManager =(LocationManager)getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,1l,100,locationListener);