Example usage for android.os Bundle putBoolean

List of usage examples for android.os Bundle putBoolean

Introduction

In this page you can find the example usage for android.os Bundle putBoolean.

Prototype

public void putBoolean(@Nullable String key, boolean value) 

Source Link

Document

Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key.

Usage

From source file:com.openerp.MainActivity.java

/**
 * Request sync./*from   w w w  .  j a v a 2  s . com*/
 * 
 * @param authority
 *            the authority
 * @param bundle
 *            the extra data
 */
public void requestSync(String authority, Bundle bundle) {
    Account account = OpenERPAccountManager.getAccount(getApplicationContext(),
            OEUser.current(getApplicationContext()).getAndroidName());
    Bundle settingsBundle = new Bundle();
    settingsBundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
    settingsBundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
    if (bundle != null) {
        settingsBundle.putAll(bundle);
    }
    ContentResolver.requestSync(account, authority, settingsBundle);
}

From source file:com.hichinaschool.flashcards.anki.multimediacard.activity.MultimediaCardEditorActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    outState.putBoolean(BUNDLE_KEY_SHUT_OFF, true);

}

From source file:com.blueverdi.rosietheriveter.MoreFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    boolean checked = false;
    try {/* ww w .  ja  va2 s . co m*/
        RadioButton rb = (RadioButton) view.findViewById(R.id.radioMapView);
        checked = rb.isChecked();
    } catch (Exception e) {
        MyLog.d(TAG, "onSaveInstanceState did not find radio button");
    }
    outState.putBoolean(MAP_VIEW, checked);
}

From source file:com.aidigame.hisun.imengstar.huanxin.MainActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    outState.putBoolean("isConflict", isConflict);
    super.onSaveInstanceState(outState);
}

From source file:de.elanev.studip.android.app.backend.net.oauth.SignInFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBoolean(REQUEST_TOKEN_RECEIVED, mRequestTokenReceived);
}

From source file:com.android.contacts.detail.ContactDetailLayoutController.java

public void onSaveInstanceState(Bundle outState) {
    outState.putParcelable(KEY_CONTACT_URI, mContactUri);
    outState.putBoolean(KEY_CONTACT_HAS_UPDATES, mContactHasUpdates);
    outState.putInt(KEY_CURRENT_PAGE_INDEX, getCurrentPageIndex());
}

From source file:ca.zadrox.dota2esportticker.ui.LiveContentView.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    mLiveTickerAdapter.onSaveInstanceState(outState);
    outState.putBoolean(KEY_GAME_COMPLETE, gameCompleted);
}

From source file:de.j4velin.mapsmeasure.Map.java

@Override
protected void onSaveInstanceState(final Bundle outState) {
    outState.putSerializable("trace", trace);
    outState.putBoolean("metric", metric);
    if (mMap != null) { // might be null if there is an issue with Google
        // Play Services
        outState.putDouble("position-lon", mMap.getCameraPosition().target.longitude);
        outState.putDouble("position-lat", mMap.getCameraPosition().target.latitude);
        outState.putFloat("position-zoom", mMap.getCameraPosition().zoom);
    }/*  w w w . j  av  a 2  s  .  c o  m*/
    super.onSaveInstanceState(outState);
}

From source file:com.android.contacts.activities.ContactSelectionActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putInt(KEY_ACTION_CODE, mActionCode);
    outState.putBoolean(KEY_SEARCH_MODE, mIsSearchMode);
    if (mActionBarAdapter != null) {
        mActionBarAdapter.onSaveInstanceState(outState);
    }/*from   www .ja  v a2 s.  co m*/
}