Beispiel #1
0
  /** Set Design of ActionBar */
  @Override
  protected void onStart() {
    super.onStart();
    ActionBar actionBar = this.getSupportActionBar();
    actionBar.setSubtitle(R.string.app_subtitle);

    // add WebserverFragment when enabled in preferences
    if (PreferenceHelper.getWebserverEnabled(this)) {
      FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();

      mWebserverFragment = new WebserverFragment();
      // replace container in view with fragment
      fragmentTransaction.replace(R.id.base_activity_webserver_container, mWebserverFragment);
      fragmentTransaction.commit();
    } else {
      // when disabled in preferences remove fragment if existing
      if (mWebserverFragment != null) {
        FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();

        fragmentTransaction.remove(mWebserverFragment);
        fragmentTransaction.commit();

        mWebserverFragment = null;
      }
    }
  }
 @Override
 protected void onStart() {
   super.onStart();
   CarListFragment listFrag =
       (CarListFragment) getSupportFragmentManager().findFragmentById(R.id.carListFragment);
   listFrag.setSelectedCarListner(this);
 }
Beispiel #3
0
  @Override
  protected void onStart() {
    super.onStart();

    if (!bluetoothAdapter.isEnabled()) {
      Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
      startActivityForResult(enableIntent, REQUEST_ENABLE_BT);
    } else if (communicator.getState() != State.CONNECTED && !devicesShowing) {
      connect();
    }
  }
Beispiel #4
0
  @Override
  protected void onStart() {
    super.onStart();

    try {
      bodyInput.addTextChangedListener(
          new TextWatcher() {

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
              // TODO Auto-generated method stub
              typingcall();
              String msg = s.toString().trim();
              if (isMultiMediaMsg(msg)) {
                bodyInput.getText().clear();
                Intent intent = new Intent(MessageActivity.this, MessageCopyHandler.class);
                intent.putExtra("message", msg);
                intent.putExtra(
                    "user_number", stripNumber(prefs.getString(stored_chatuserNumber, "")));
                startActivity(intent);
              }
            }

            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {
              // TODO Auto-generated method stub

            }

            @Override
            public void afterTextChanged(Editable s) {
              // TODO Auto-generated method stub

            }
          });

    } catch (Exception e) {
      // TODO: handle exception
    }
  }
Beispiel #5
0
 @Override
 public void onStart() {
   super.onStart();
   // The rest of your onStart() code.
   EasyTracker.getInstance(this).activityStart(this); // Add this method.
 }
Beispiel #6
0
 @Override
 protected void onStart() {
   super.onStart();
   isActive = true;
 }
 @Override
 public void onStart() {
   super.onStart();
   registerPassphraseActivityStarted();
 }
 @Override
 public void onStart() {
   super.onStart();
   EasyTracker.getInstance().activityStart(this); // Add this method.
 }