android.support.v7.app.ActionBarActivity.onPause()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(30)

本文整理了Java中android.support.v7.app.ActionBarActivity.onPause()方法的一些代码示例,展示了ActionBarActivity.onPause()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionBarActivity.onPause()方法的具体详情如下:
包路径:android.support.v7.app.ActionBarActivity
类名称:ActionBarActivity
方法名:onPause

ActionBarActivity.onPause介绍

暂无

代码示例

代码示例来源:origin: realtime-framework/MessagingAndroidChat

@Override
protected void onPause() {
  super.onPause();
  pause = true;
  mIsInForegroundMode = false;
}

代码示例来源:origin: realtime-framework/MessagingAndroidChat

@Override
protected void onPause() {
  super.onPause();
  mIsInForegroundMode = false;
}

代码示例来源:origin: techery/presenta

@Override
protected void onPause() {
 flowSupport.onPause();
 super.onPause();
}

代码示例来源:origin: RomascuAndrei/BTNotifierAndroid

@Override
protected void onPause() {
  mAdView.pause();
  super.onPause();
}

代码示例来源:origin: purrprogramming/voice-pitch-analyzer

@Override
protected void onPause() {
  super.onPause();
  savePreferences();
}

代码示例来源:origin: SimonMarquis/Android-PreferencesManager

@Override
protected void onPause() {
  mEditText.removeTextChangedListener(this);
  super.onPause();
}

代码示例来源:origin: yuvaraj119/Picasso-RecyclerView-StaggeredGridLayoutManager

/** Called when leaving the activity */
@Override
public void onPause() {
  if (mAdView != null) {
    mAdView.pause();
  }
  super.onPause();
}

代码示例来源:origin: flyingrub/SpeedMeter

@Override
protected void onPause() {
  super.onPause();
  mLocationManager.removeUpdates(this);
  mLocationManager.removeGpsStatusListener(this);
  SharedPreferences.Editor prefsEditor = sharedPreferences.edit();
  Gson gson = new Gson();
  String json = gson.toJson(data);
  prefsEditor.putString("data", json);
  prefsEditor.commit();
}

代码示例来源:origin: sismics/reader

@Override
  protected void onPause() {
    if (readArticleIdSet != null && !readArticleIdSet.isEmpty()) {
      // Mark articles as read on local data
      for (JSONObject article : sharedAdapterHelper.getArticleItems()) {
        String articleId = article.optString("id");
        if (readArticleIdSet.contains(articleId)) {
          try {
            article.put("is_read", true);
          } catch (JSONException e) {
            Log.e("ArticleActivity", "Error changing read state", e);
          }
        }
      }
      sharedAdapterHelper.onDataChanged();

      // Update the server
      ArticleResource.readMultiple(ArticleActivity.this, readArticleIdSet, new JsonHttpResponseHandler());
    }
    super.onPause();
  }
}

相关文章