android開發之GPS定位詳解

一、LocationManager LocationMangager,位置管理器。要想操作定位相關設備,必須先定義個LocationManager。我們可以通過如下代碼創建LocationManger對象。 LocationManger locationManager=(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
相關文章
相關標籤/搜索