Beispiel #1
0
  private MyLocationInfo() {
    context = ZApplication.getInstance();
    locData = new LocationData();

    myListener = new MyLocationListenner();

    mLocClient = new LocationClient(context);
    option = new LocationClientOption();
    init();
  }
Beispiel #2
0
 /** 开始定位服务, activity的onResume中设置监听,用于回调 */
 public void startLocating(OnLocationUpdateListener loclistener) {
   init();
   LocListener = loclistener;
 }