@Override protected void onResume() { super.onResume(); registerReceiver( controlReceiver, new IntentFilter(AstridApiConstants.BROADCAST_SEND_EDIT_CONTROLS)); populateFields(); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); // resume the drawing thread (which runs in the screenview object) when // screen is resumed. myHapticView.resume(); }
@Override public void onResume() { super.onResume(); ((Foursquared) getApplication()).requestLocationUpdates(true); if (mSearchHolder.results == null && mSearchTask == null) { mSearchTask = (SearchTask) new SearchTask().execute(); } }
@Override protected void onResume() { super.onResume(); // 清楚通知栏信息 NotificationWarningControl notifyctrl = new NotificationWarningControl(context); notifyctrl.cancelAlertNotify(context); isExit = false; // MobclickAgent.onResume(this); }
public void onResume() { super.onResume(); // Log.i("WaveLoop", "onStart"); if (PlayerProxy.instance() == null) { // mNowPlayingMain.setEnabled(false); // mNowPlayingMain.setVisibility(View.INVISIBLE); mWaveLoopMain.removeView(mNowPlayingMain); return; } final AudioInfo audioInfo = PlayerProxy.getAudioInfo(); if (audioInfo != null) { mWaveLoopMain.removeView(mNowPlayingMain); mWaveLoopMain.addView(mNowPlayingMain); // mNowPlayingMain.setEnabled(true); // mNowPlayingMain.setVisibility(View.VISIBLE); mNowPlayingArtist.setText(audioInfo.artist); mNowPlayingAlbum.setText(audioInfo.album); mNowPlayingTitle.setText(audioInfo.title); mNowPlayingPlayBtn.setImageResource( (PlayerProxy.isPlaying()) ? R.drawable.pause_bkgnd : R.drawable.play_bkgnd); mNowPlayingPlayBtn.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { if (PlayerProxy.isPlaying()) PlayerProxy.pause(); else PlayerProxy.play(); mNowPlayingPlayBtn.setImageResource( (PlayerProxy.isPlaying()) ? R.drawable.pause_bkgnd : R.drawable.play_bkgnd); } }); mNowPlayingBtn.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(WaveLoopActivity.this, player_main.class); i.putExtra("오디오파일경로", (int) audioInfo.dataRowId); startActivity(i); } }); } else { mWaveLoopMain.removeView(mNowPlayingMain); // mNowPlayingMain.setEnabled(false); // mNowPlayingMain.setVisibility(View.INVISIBLE); } }
public void onResume() { super.onResume(); if (!prefs.getGoingToInfo()) { if (prefs.getKey().equals("")) { Intent loginIntent = new Intent().setClass(UcheckAndroidMain.this, Login.class); UcheckAndroidMain.this.startActivity(loginIntent); } else { tabHost.setCurrentTab(lastTab); } } else { prefs.setGoingToInfo(false); } }
protected void onResume() { super.onResume(); Log.i("TabWidget", "onResume"); Account tmp = getIntent().getExtras().getParcelable("account"); if (!tmp.equals(account)) { // New account, so re-setup tabs tabHost.clearAllTabs(); account = tmp; setupTabs(); } Log.i("TabWidget", "Account=" + account); titleTextBox.setText(account.getAccountIdentifier()); }
/* * (non-Javadoc) * @see android.app.Activity#onResume() */ @Override protected void onResume() { super.onResume(); final SharedPreferences prefs = getSharedPreferences(Pref.FILENAME, 0); accessToken = prefs.getString(Pref.PREF_ACCESS_TOKEN, null); if (accessToken != null) { client = new AppNetClient(accessToken); startPollThread(); } else { requestAuthorization(); } ready = true; }
@Override protected void onResume() { super.onResume(); support.onResume(); // workaround for a strange bug: if you go to second level in the HieraticalHostListView, // then open the Preferences-Activity and close it again, the 2 lists will show overlapped. HieraticalHostListView hlv = (HieraticalHostListView) findViewById(R.id.hosts_status); if (hlv != null) { hlv.setDisplayedChild(0); } hlv = (HieraticalHostListView) findViewById(R.id.hosts_checks); if (hlv != null) { hlv.setDisplayedChild(0); } ViewFlipper vf_screens = (ViewFlipper) findViewById(R.id.view_switcher_screens); if (vf_screens != null) { vf_screens.setDisplayedChild(0); } }
@Override public void onResume() { super.onResume(); registerReceiver( tokenRevocationReceiver, new IntentFilter(ClientManager.ACCESS_TOKEN_REVOKE_INTENT)); // Hide everything until we are logged in findViewById(R.id.root).setVisibility(View.INVISIBLE); // Bring up passcode screen if needed if (passcodeManager.onResume(this)) { // Login options String accountType = SalesforceSDKManager.getInstance().getAccountType(); // Get a rest client new ClientManager( this, accountType, SalesforceSDKManager.getInstance().getLoginOptions(), SalesforceSDKManager.getInstance().shouldLogoutWhenTokenRevoked()) .getRestClient( this, new RestClientCallback() { @Override public void authenticatedRestClient(RestClient client) { if (client == null) { SalesforceSDKManager.getInstance().logout(ExplorerActivity.this); return; } ExplorerActivity.this.client = client; // Show everything findViewById(R.id.root).setVisibility(View.VISIBLE); } }); } }
/** * Subclasses should call this method from their own onResume() if overloaded. It takes care of * connecting with the IOIO. */ @Override protected void onResume() { super.onResume(); ioio_thread_ = createIOIOThread(); ioio_thread_.start(); }
protected void onResume() { this.mStatus = JTabActivity.Status.RESUMED; super.onResume(); }
@Override public void onResume() { super.onResume(); Instance = this; }
@Override protected void onResume() { super.onResume(); internalSetProgressBarIndeterminateVisibility(isCurrentlyRefreshing()); registerReceiver(refreshReceiver, new IntentFilter("de.shandschuh.sparserss.REFRESH")); }
@Override protected void onResume() { super.onResume(); }
@Override protected void onResume() { super.onResume(); Log.d(TAG, "onResume"); }
@Override protected void onResume() { super.onResume(); SetStatusBarColor(); }
@Override public void onResume() { super.onResume(); setButton(); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); System.out.println("被恢复"); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); }
@Override public void onResume() { super.onResume(); }