Exemple #1
0
 protected void onStop() {
   //	Log.v("detectActivity","stop");
   super.onStop();
   if (mp3 != null) {
     mp3.release();
   }
 }
  @Override
  public void onStop() {
    // store current imge path:
    if (m_ImagePath != null) m_Prefs.setImagePath(m_ImagePath);

    super.onStop();
  }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   // timer.cancel();
   task.stop();
 }
 @Override
 protected void onStop() {
   super.onStop();
   for (LifeCycleListener listener : mListeners) {
     listener.onActivityStopped(this);
   }
 }
 @Override
 protected void onStop() {
   super.onStop();
   mBaiduMap.setMyLocationEnabled(false);
   mLocationClient.stop();
   myOrientationListener.stop();
 }
 @Override
 public void onStop() {
   super.onStop();
   saveMyPreferences();
   if (D) Log.e(TAG, "-- ON STOP --");
   System.gc();
 }
 @Override
 public void onStop() {
   unbindService(serviceConnection);
   isBind = false;
   messenger = null;
   super.onStop();
 }
  /** volley网络请求与生命周期的联动 */
  @Override
  protected void onStop() {
    super.onStop();

    BaseApplication.getRequestQueue().cancelAll("volley_get");
    BaseApplication.getRequestQueue().cancelAll("volley_post");
  }
Exemple #9
0
 @Override
 protected void onStop() {
   locMan.removeUpdates(loclis);
   BufferedWriter bufferedWriter;
   try {
     String root = Environment.getExternalStorageDirectory().toString();
     File myDir = new File(root + "/HSI/logs");
     myDir.mkdirs();
     SimpleDateFormat df =
         new SimpleDateFormat("HH:mm", Locale.US); // DateFormat.getTimeInstance();
     String time = df.format(new Date());
     bufferedWriter = new BufferedWriter(new FileWriter(new File(myDir, "log" + time + ".txt")));
     for (int i = 0; i < log.size(); i++) {
       bufferedWriter.write(log.get(i));
       System.out.println("writing to log");
     }
     bufferedWriter.close();
     System.out.println("log written");
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   super.onStop();
   finish();
 }
  @Override
  protected final void onStop() {
    super.onStop();

    stop();
    $.hook(STOP).fire(ACT_HOOK_ADMIN, baseHookArgs);
  }
 protected void onStop() {
   super.onStop();
   if (mGoogleApiClient.isConnected()) {
     Log.i(TAG, "disconnected");
     mGoogleApiClient.disconnect();
   }
 }
 @Override
 protected void onStop() {
   if (objCustomMoreEventsAdapter != null)
     objCustomMoreEventsAdapter.refresh(new ArrayList<EventsDetails>());
   if (objDrawableManager != null) objDrawableManager.clear();
   super.onStop();
 }
 @Override
 public void onStop() {
   // 停止时关掉
   // timer.cancel();
   Constants.IsDrawWaterfall = false;
   super.onStop();
 }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   // Stop track using Google Analytics
   super.onStop();
   EasyTracker.getInstance().activityStop(this);
 }
 @Override
 protected void onStop() {
   super.onStop();
   mediaController.hide();
   mediaPlayer.stop();
   mediaPlayer.release();
 }
 @Override
 protected void onDestroy() {
   gps.unsuscribe();
   stopLocationPolling();
   Log.d("ROADTEST", "unsubscribed from GPSService");
   super.onStop();
 }
 @Override
 protected void onStop() {
   super.onStop();
   Log.d("stopping iitcm");
   mIitcWebView.loadUrl("javascript: window.idleSet();");
   mUserLocation.onStop();
 }
  @Override
  public void onStop() {
    super.onStop();

    // Emit LogCat message
    Log.i(TAG, "Entered the onStop() method");
  }
 @Override
 protected void onStop() {
   super.onStop();
   mFacadeManager.getReceiver(EventFacade.class).removeEventObserver(mObserver);
   mWebView.destroy();
   finish();
 }
 /** Disconnect the stub from our service on stop */
 @Override
 protected void onStop() {
   if (null != mDownloaderClientStub) {
     mDownloaderClientStub.disconnect(this);
   }
   super.onStop();
 }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   // Stop the analytics tracking
   GoogleAnalytics.getInstance(this).reportActivityStop(this);
   super.onStop();
 }
 /**
  * To terminate Resource hosting.
  *
  * @see Class class : com_example_resourcehostingsampleapp_ResourceHosting</br>
  * @see Method method : onStop</br>
  */
 @Override
 protected void onStop() {
   super.onStop();
   int result;
   result = resourceHosting.ResourceHostingTerminate();
   Log.d(TAG, "ResourceHostingTerminate : " + result);
 }
 protected void onStop()
 {
   super.onStop();
   f = true;
   a.sendEmptyMessage(1);
   b.o();
 }
 @Override
 protected void onStop() {
   if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
     mGoogleApiClient.disconnect();
   }
   super.onStop();
 }
 @Override
 protected void onStop() {
   super.onStop();
   status_message = "Estado: onStop";
   txt_msg.setText(status_message);
   Log.e(TAG, status_message);
 }
  @Override
  public void onStop() {
    super.onStop();

    /** * Guardar los colores calibrados ** */
    SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
    SharedPreferences.Editor editor = settings.edit();

    Scalar hsvCanColor = ((ColorsApplication) getApplication()).getCanColor();
    Scalar hsvSeaColor = ((ColorsApplication) getApplication()).getSeaColor();
    Scalar hsvContColor = ((ColorsApplication) getApplication()).getContColor();

    editor.putFloat("can_H", (float) hsvCanColor.val[0]);
    editor.putFloat("can_S", (float) hsvCanColor.val[1]);
    editor.putFloat("can_V", (float) hsvCanColor.val[2]);

    editor.putFloat("sea_H", (float) hsvSeaColor.val[0]);
    editor.putFloat("sea_S", (float) hsvSeaColor.val[1]);
    editor.putFloat("sea_V", (float) hsvSeaColor.val[2]);

    editor.putFloat("cont_H", (float) hsvContColor.val[0]);
    editor.putFloat("cont_S", (float) hsvContColor.val[1]);
    editor.putFloat("cont_V", (float) hsvContColor.val[2]);

    editor.commit();
  }
 @Override
 public void onStop() {
   super.onStop();
   Log.d("TAG", "onStop LocationActivity");
   mGoogleApiClient.disconnect();
   Log.d("TAG", "isConnected ...............: " + mGoogleApiClient.isConnected());
 }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   // Unbind Service
   unbindService(this);
 }
 /** {@inheritDoc} */
 @Override
 protected void onStop() {
   Debug.print(tag, "stop");
   {
     super.onStop();
   }
 }
Exemple #30
0
 public void onStop() {
   super.onStop();
   Log.i("JBZL", "onStop");
   mHandler.removeCallbacks(btRunnable);
   mHandler.removeCallbacks(socketConnect);
   mHandler.removeCallbacks(printRunnable);
 }