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

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

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

ActionBarActivity.onResume介绍

暂无

代码示例

代码示例来源:origin: scola/Qart

@Override
protected void onResume() {
  super.onResume();
  final SharedPreferences sharedPref = getSharedPreferences(PREF_GUIDE_VERSION, Context.MODE_PRIVATE);
  String version = sharedPref.getString(PREF_GUIDE_VERSION, "");
  if (version.isEmpty() || version.split("\\.")[0].equals(getMyVersion(this).split("\\.")[0]) == false) {
    Intent i = new Intent(this, IntroActivity.class);
    startActivity(i);
  }
}

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

@Override
protected void onResume() {
  super.onResume();
  mIsInForegroundMode = true;
}

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

@Override
protected void onResume() {
  mEditText.addTextChangedListener(this);
  super.onResume();
}

代码示例来源:origin: dialogflow/dialogflow-android-client

@Override
protected void onResume() {
  super.onResume();
  aiDialog.showAndListen();
}

代码示例来源:origin: MeetMe/Android-MultiStateView

@Override
protected void onResume() {
  super.onResume();
  setStateText(mState);
}

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

/** Called when returning to the activity */
@Override
public void onResume() {
  super.onResume();
  if (mAdView != null) {
    mAdView.resume();
  }
}

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

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

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

@Override
protected void onResume() {
  super.onResume();
  if(mAdView!=null){  // Check if Adview is not null in case of fist time load.
    mAdView.resume();}
}

代码示例来源:origin: pinterest/android-pdk

@Override
protected void onResume() {
  super.onResume();
  fetchFollowers();
}

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

@Override
public void onResume(){
  super.onResume();
  blacklistedApp = new BlacklistedApp(this);
}

代码示例来源:origin: pinterest/android-pdk

@Override
protected void onResume() {
  super.onResume();
  fetchBoards();
}

代码示例来源:origin: pinterest/android-pdk

@Override
protected void onResume() {
  super.onResume();
  fetchPins();
}

代码示例来源:origin: andreadec/MusicPlayer

@Override
public void onResume() {
  super.onResume();
  editTextSearch.requestFocus();
  inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
}

代码示例来源:origin: hexene/LocalVPN

@Override
protected void onResume() {
  super.onResume();
  enableButton(!waitingForVPNStart && !LocalVPNService.isRunning());
}

代码示例来源:origin: eliotstocker/Light-Controller

@Override
protected void onResume() {
  super.onResume();
  gotDevice = false;
  if(!Utils.isWifiConnection()) {
  }
  attemptDiscovery();
}

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

@Override
protected void onResume(){
  super.onResume();
  clearChannelsList();
  setChannels();
}

代码示例来源:origin: eliotstocker/Light-Controller

@Override
protected void onResume() {
  super.onResume();
  enabled = prefs.getStringSet("enabled_api_apps", new HashSet<String>());
  setUpAdapter();
  final Context _this = this;
  PermsList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
      final Application a = (Application)PermsAdapter.getItem(position);
      new MaterialDialog.Builder(_this)
          .title("Remove Permission")
          .content("Remove API Permission for '"+a.Name+"'?")
          .cancelable(true)
          .onPositive(new MaterialDialog.SingleButtonCallback() {
            @Override
            public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
              enabled.remove(a.pkg);
              setUpAdapter();
              prefs.getStringSet("enabled_api_apps", enabled);
              _this.getContentResolver().notifyChange(Uri.parse("content://tv.piratemedia.lightcontroler.api/permission"), null);
            }
          })
          .positiveText("Remove")
          .negativeText("Cancel")
          .build()
          .show();
    }
  });
}

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

@Override
protected void onResume() {
  super.onResume();
  pause = false;
  mIsInForegroundMode = true;
  OrtcHandler.selfHandler.messagesView = this;
  channel = getIntent().getStringExtra("channel");
  setTitle(channel);
  TableLayout tableMessages = (TableLayout) findViewById(R.id.tableMessages);
  tableMessages.removeAllViews();
  loadMsg();
}

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

@Override
public void onResume(){
  super.onResume();
  blacklistedApp.getFromPref();
  adapter.refresh(blacklistedApp.getBlacklistedAppList());
  checkIfEmpty();
}

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

@Override
protected void onResume() {
  super.onResume();
  firstfix = true;
  if (!data.isRunning()){
    Gson gson = new Gson();
    String json = sharedPreferences.getString("data", "");
    data = gson.fromJson(json, Data.class);
  }
  if (data == null){
    data = new Data(onGpsServiceUpdate);
  }else{
    data.setOnGpsServiceUpdate(onGpsServiceUpdate);
  }
  if (mLocationManager.getAllProviders().indexOf(LocationManager.GPS_PROVIDER) >= 0) {
    mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 500, 0, this);
  } else {
    Log.w("MainActivity", "No GPS location provider found. GPS data display will not be available.");
  }
  if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
    showGpsDisabledDialog();
  }
  mLocationManager.addGpsStatusListener(this);
}

相关文章