Exemplo n.º 1
0
  private MyLocationInfo() {
    context = ZApplication.getInstance();
    locData = new LocationData();

    myListener = new MyLocationListenner();

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