龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 移动开发 > Android开发 >

在Android里完美实现基站和WIFI定位(4)

时间:2014-07-26 02:48来源:网络整理 作者:网络 点击:
分享到:
调用方法: CellInfoManager cellManager = new CellInfoManager(this); WifiInfoManager wifiManager = new WifiInfoManager(this); CellLocationManager locationManager = new CellLocationManager(this, ce

调用方法:    

CellInfoManager cellManager = new CellInfoManager(this);
       WifiInfoManager wifiManager = new WifiInfoManager(this);
       CellLocationManager locationManager = new CellLocationManager(this, cellManager, wifiManager) {
           @Override
           public void onLocationChanged() {
              txtAutoNaviInfo.setText(this.latitude() + "-" + this.longitude());
              this.stop();
           }
       };
       locationManager.start();
精彩图集

赞助商链接