Пример #1
0
 public void onPause() {
   mApplication.onPauseMapActivity();
   mMxLocationOverlay.disableMyLocation();
   mMxLocationOverlay.disableCompass(); // 关闭指南针
   // if (mMovingOverlay != null) {
   // mMovingOverlay.onPause();
   // }
   super.onPause();
   MobclickAgent.onPause(this);
   mActionBar.setProgressBarVisibility(View.GONE);
 }
Пример #2
0
 public void onResume() {
   mApplication.onResumeMapActivity();
   mMxLocationOverlay.enableMyLocation();
   mMxLocationOverlay.enableCompass();
   mCaricoOverlay.setData(mApplication.getCarPosition());
   // if (mMovingOverlay != null) {
   // mMovingOverlay.onResume();
   // }
   super.onResume();
   MobclickAgent.onResume(this);
 }
Пример #3
0
 public void onGetAddrResult(MKAddrInfo arg0, int arg1) {
   // arg0.geoPt
   if (arg1 != 0 || arg0 == null) {
     // 异常了
     ToastShow.show(mPathActivity, "地址翻译出错");
     return;
   }
   synchronized (mReqCodeQueue) {
     Integer reqCode = mReqCodeQueue.poll();
     if (reqCode != null) {
       switch (reqCode.intValue()) {
         case RoutesOverlay.REVERSE_GEOCODE:
           if (mRoutesOverlay != null) mRoutesOverlay.onGetAddrResult(arg0);
           break;
         case MxLocationOverlay.REVERSE_GEOCODE:
           if (mMxLocationOverlay != null) mMxLocationOverlay.onGetAddrResult(arg0);
           break;
       }
     }
   }
 }