Example #1
0
  @Override
  protected void onDestroy() {
    if (mLocClient != null) mLocClient.stop();
    mMapView.destroy();

    // Gl app = (Gl)this.getApplication();
    if (mBMapManager != null) {
      mBMapManager.destroy();
      mBMapManager = null;
    }
    super.onDestroy();
  }
Example #2
0
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   mMapView.destroy();
   if (mMapManager != null) {
     mMapManager.destroy();
     mMapManager = null;
   }
   if (mLocationClient.isStarted()) {
     mLocationClient.stop();
   }
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   mMapView.destroy();
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   /** MapView的生命周期与Activity同步,当activity销毁时需调用MapView.destroy() */
   mMapView.destroy();
   super.onDestroy();
 }