Пример #1
1
  @Override
  protected void onDestroy() {
    Log.v("SDL", "onDestroy()");

    if (SDLActivity.mBrokenLibraries) {
      super.onDestroy();
      // Reset everything in case the user re opens the app
      SDLActivity.initialize();
      return;
    }

    // Send a quit message to the application
    SDLActivity.mExitCalledFromJava = true;
    SDLActivity.nativeQuit();

    // Now wait for the SDL thread to quit
    if (SDLActivity.mSDLThread != null) {
      try {
        SDLActivity.mSDLThread.join();
      } catch (Exception e) {
        Log.v("SDL", "Problem stopping thread: " + e);
      }
      SDLActivity.mSDLThread = null;

      // Log.v("SDL", "Finished waiting for SDL thread");
    }

    super.onDestroy();
    // Reset everything in case the user re opens the app
    SDLActivity.initialize();
  }
Пример #2
1
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (progressDialog != null)
     if (progressDialog.isShowing()) {
       progressDialog.cancel();
     }
   super.onDestroy();
 }
Пример #3
1
  @Override
  public void onDestroy() {
    super.onDestroy();
    vview.mflag = false;
    qiniuext.Pqueue.clear();

    videoActi = null;
    if (timeCount_video_beat != null) {
      timeCount_video_beat.cancel();
      timeCount_video_beat = null;
    }
    super.onDestroy();
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   timer.cancel();
   checkTask.cancel();
   Log.d("mytag", "onDestroy()");
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mBle != null) {
     mBle.disconnect(mDeviceAddress);
   }
 }
Пример #6
1
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mBitmap != null) mBitmap.recycle();
   // mZoomView.setOnTouchListener(null);
   // mZoomState.deleteObservers();
 }
 @Override
 protected void onDestroy() {
   Log.v(TAG, "onDestroy");
   super.onDestroy();
   releaseMediaPlayer();
   doCleanUp();
 }
 @Override
 protected void onDestroy() {
   // 退出时销毁定位
   if (mLocClient != null) mLocClient.stop();
   mMapView.destroy();
   super.onDestroy();
 }
Пример #9
1
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mShakeListener != null) {
     mShakeListener.stop();
   }
 }
Пример #10
1
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (pDialog != null) {
     pDialog.dismiss();
   }
 }
Пример #11
1
 //			private void bindNavigation(Offer offer) {
 //
 //
 //				LocationOfferDetailActivity.offer=offer;
 //				Intent navigationIntent=new
 // Intent(getApplicationContext(),LocationOfferDetailActivity.class);
 //				startActivity(navigationIntent);
 //
 //
 //			}
 //		});
 //
 //	 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (asyncFetchLocationNews != null) asyncFetchLocationNews.cancel(true);
   if (locationMangaer != null && locationListener != null)
     locationMangaer.removeUpdates(locationListener);
 }
Пример #12
1
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   //		mgr.closeDB();
   finish();
 }
Пример #13
1
 protected void onDestroy() {
   if (mLocClient != null) mLocClient.stop();
   mMapView.onDestroy();
   unregisterReceiver(mBaiduReceiver);
   Log.i(TAG, "[ACTIVITY] onDestroy");
   super.onDestroy();
 }
Пример #14
1
  @Override
  protected void onDestroy() {
    super.onDestroy();

    sr.cancel();
    sr.destroy();
  }
Пример #15
1
  @Override
  protected void onDestroy() {
    // TODO Auto-generated method stub
    ImageLoader2.GetInstance().clearCache();

    super.onDestroy();
  }
Пример #16
1
  @Override
  protected void onDestroy() {

    Utilities.LogDebug("GpsMainActivity.onDestroy");
    StopAndUnbindServiceIfRequired();
    super.onDestroy();
  }
 @Override
 protected void onDestroy() {
   if (adView != null) {
     adView.destroy();
   }
   super.onDestroy();
 }
Пример #18
1
  protected void onDestroy() {
    super.onDestroy();

    Intent intent = new Intent();
    intent.setClass(EventTypeSelection.this, SignOut.class);
    startActivity(intent);
  }
Пример #19
1
  @Override
  protected void onDestroy() {
    super.onDestroy();

    IasessApp.unbindDrawables(findViewById(R.id.RootView));
    System.gc();
  }
 protected void onDestroy()
 {
   if (isShowingSurvey()) {
     onDestroySurvey();
   }
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   AppLog.enter(TAG, AppLog.getMethodName());
   deInitialize();
   super.onDestroy();
   AppLog.exit(TAG, AppLog.getMethodName());
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mCursor != null) {
     mCursor.close();
   }
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   Log.d(LT, "App destroyed.");
   StopEventMonitor();
   events.Release();
 }
Пример #24
1
  @Override
  protected void onDestroy() {
    NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    int icon = R.drawable.icon;
    CharSequence tickerText =
        getResources().getString(R.string.ministro_repository_changed_msg); // ticker-text
    long when = System.currentTimeMillis(); // notification time
    Context context = getApplicationContext(); // application Context
    CharSequence contentTitle =
        getResources().getString(R.string.ministro_update_msg); // expanded message title
    CharSequence contentText =
        getResources()
            .getString(R.string.ministro_repository_changed_tap_msg); // expanded message text

    Intent notificationIntent = new Intent(this, MinistroActivity.class);
    PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

    // the next two lines initialize the Notification, using the configurations above
    Notification notification = new Notification(icon, tickerText, when);
    notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
    notification.defaults |= Notification.DEFAULT_SOUND;
    notification.defaults |= Notification.DEFAULT_VIBRATE;
    notification.defaults |= Notification.DEFAULT_LIGHTS;
    try {
      nm.notify(1, notification);
    } catch (Exception e) {
      e.printStackTrace();
    }
    super.onDestroy();
  }
Пример #25
1
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mAutoLoginListener != null) {
     unregisterReceiver(mAutoLoginListener);
   }
 }
Пример #26
1
 @Override
 public void onDestroy() {
   if (adView != null) {
     adView.destroy();
   }
   super.onDestroy();
 }
Пример #27
1
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (listener != null) {
     phHueSDK.getNotificationManager().unregisterSDKListener(listener);
   }
 }
Пример #28
1
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   soundPool.release();
   soundPool = null;
 }
Пример #29
1
 @Override
 protected void onDestroy() {
   if (mInstanceUploaderTask != null) {
     mInstanceUploaderTask.setUploaderListener(null);
   }
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   endTime = new Date();
   GetHtml.sendInfo2ServerByThread(
       Tool.getActivitydurationInfo2Server(this.getClass().getSimpleName(), startTime, endTime));
 }