0
A
回答
1
LocationManager manager = (LocationManager)Context.getSystemService(Context.LOCATION_SERVICE);
manager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
1
可以使用的LocationManager。
http://developer.android.com/reference/android/location/LocationManager.html
相關問題
- 1. Android GPS電池使用
- 2. Android:僅使用GPS的MyLocationOverlay
- 3. Android GPS禁用
- 4. Android的GPS調用
- 5. 在Android上使用GPS APP停止
- 6. 在android中使用GPS的假位置
- 7. 使用GPS獲取郵編android
- 8. 使用Android獲取GPS位置
- 9. 如何使用android進行gps導航
- 10. 幫助使用GPS座標,Android
- 11. 如何使用android GPS跟蹤currier /包?
- 12. Android:如何使用GPS測量距離
- 13. 使用服務獲取GPS位置,android?
- 14. 使用GPS獲取空位置(android)
- 15. 總是使用GPS的Android服務
- 16. 使用GPS凍結Android模擬器2.0
- 17. 使用Android GPS進行位置更新?
- 18. Android GPS和電池使用情況
- 19. 使用android檢索GPS位置
- 20. android LocationListener不停止GPS使用
- 21. 在Android中使用GPS計算速度
- 22. Monodroid GPS使用
- 23. Android GPS超時
- 24. Android GPS位置
- 25. Android中的GPS
- 26. Android Gps座標
- 27. error gps requestLocationUpdates android
- 28. GPS在Android
- 29. android GPS校準
- 30. ANDROID GPS/Invalid Listener
@尼古拉Smiljanic:感謝UR答覆..... – 2010-10-06 09:52:41
進口android.content.Context; import android.location.LocationManager; LocationManager manager =(LocationManager)getSystemService(Context.LOCATION_SERVICE); manager.getLastKnownLocation(LocationManager.GPS_PROVIDER); – 2010-10-06 10:15:21