Exemplo n.º 1
0
 @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();
   }
 }
Exemplo n.º 4
0
 @Override
 protected void onResume() {
   super.onResume();
   // 清楚通知栏信息
   NotificationWarningControl notifyctrl = new NotificationWarningControl(context);
   notifyctrl.cancelAlertNotify(context);
   isExit = false;
   // MobclickAgent.onResume(this);
 }
Exemplo n.º 5
0
  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);
   }
 }
Exemplo n.º 7
0
  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());
  }
Exemplo n.º 8
0
  /*
   * (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;
  }
Exemplo n.º 9
0
  @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();
 }
Exemplo n.º 13
0
 @Override
 public void onResume() {
   super.onResume();
   Instance = this;
 }
Exemplo n.º 14
0
 @Override
 protected void onResume() {
   super.onResume();
   internalSetProgressBarIndeterminateVisibility(isCurrentlyRefreshing());
   registerReceiver(refreshReceiver, new IntentFilter("de.shandschuh.sparserss.REFRESH"));
 }
 @Override
 protected void onResume() {
   super.onResume();
 }
Exemplo n.º 16
0
 @Override
 protected void onResume() {
   super.onResume();
   Log.d(TAG, "onResume");
 }
 @Override
 protected void onResume() {
   super.onResume();
   SetStatusBarColor();
 }
Exemplo n.º 18
0
 @Override
 public void onResume() {
   super.onResume();
   setButton();
 }
Exemplo n.º 19
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   System.out.println("被恢复");
 }
Exemplo n.º 20
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
 }
Exemplo n.º 21
0
 @Override
 public void onResume() {
   super.onResume();
 }