private MyLocationInfo() { context = ZApplication.getInstance(); locData = new LocationData(); myListener = new MyLocationListenner(); mLocClient = new LocationClient(context); option = new LocationClientOption(); init(); }
/** 开始定位服务, activity的onResume中设置监听,用于回调 */ public void startLocating(OnLocationUpdateListener loclistener) { init(); LocListener = loclistener; }