Example usage for android.os Bundle putCharSequence

List of usage examples for android.os Bundle putCharSequence

Introduction

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

Prototype

@Override
public void putCharSequence(@Nullable String key, @Nullable CharSequence value) 

Source Link

Document

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

Usage

From source file:com.github.mobile.ui.BaseActivity.java

protected void loadMarkdown() {
    ViewUtils.setGone(loadingBar, false);
    ViewUtils.setGone(codeView, true);/* w w  w.jav a2s. c  o m*/

    String markdown = new String(EncodingUtils.fromBase64(blob.getContent()));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    getSupportLoaderManager().restartLoader(0, args, this);
}

From source file:org.emergent.android.weave.PasswordListFragment.java

@Override
protected Bundle createLoaderBundle() {
    Bundle args = new Bundle();
    args.putCharSequence(QUERY_KEY, m_filterString.get());
    args.putParcelable(CONTENT_URI_KEY, Passwords.CONTENT_URI);
    args.putString(SORT_ORDER_KEY, Passwords.Columns.HOSTNAME);
    return args;// ww  w .  j a va  2s  .  com
}

From source file:com.vsmartcard.acardemulator.MainActivity.java

@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
    savedInstanceState.putCharSequence(SAVED_STATUS, textViewVPCDStatus.getText());
    super.onSaveInstanceState(savedInstanceState);
}

From source file:org.emergent.android.weave.BookmarkListFragment.java

@Override
protected Bundle createLoaderBundle() {
    Bundle args = new Bundle();
    args.putCharSequence(QUERY_KEY, m_filterString.get());
    args.putParcelable(CONTENT_URI_KEY, Bookmarks.CONTENT_URI);
    args.putString(SORT_ORDER_KEY, Bookmarks.Columns.TITLE);
    return args;//  ww  w .  j  a v  a  2 s.c  om
}

From source file:siarhei.luskanau.gps.tracker.free.ui.progress.ProgressDialogFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(TITLE_ARG, title);
    outState.putCharSequence(MESSAGE_ARG, message);
    outState.putString(REFRESH_ACTION_ARG, refreshAction);
}

From source file:com.example.julia.popularmovies.MovieGridActivity.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(TOOLBAR_TITLE, FRAGMENT_NAME[mTabLayout.getSelectedTabPosition()]);
}

From source file:com.commonsware.android.ab.search.ActionBarFragment.java

@Override
public void onSaveInstanceState(Bundle state) {
    super.onSaveInstanceState(state);

    if (!sv.isIconified()) {
        state.putCharSequence(STATE_QUERY, sv.getQuery());
    }//ww  w.  j a  va  2  s . c o m

    state.putStringArrayList(STATE_MODEL, words);
}

From source file:com.ze.client.projecto.dialog.ProjectorDialog.java

@Override
public void onSaveInstanceState(Bundle outState) {
    if (mName != null)
        outState.putCharSequence(TEXT_NAME, mName.getText());
    if (mPort != null)
        outState.putCharSequence(TEXT_PORT, mPort.getText());
    if (mProjectorHost != null)
        outState.putCharSequence(TEXT_HOST, mProjectorHost.getText());
    if (mTypeSpinner != null)
        outState.putInt(ITEM_TYPE, mTypeSpinner.getSelectedItemPosition());
    if (mSchemeSpinner != null)
        outState.putInt(ITEM_SCHEME, mSchemeSpinner.getSelectedItemPosition());
    super.onSaveInstanceState(outState);
}

From source file:com.android.talkback.SavedNode.java

private void restoreText(AccessibilityNodeInfoCompat node) {
    if (node.getText() != null) {
        Bundle args = new Bundle();
        args.putCharSequence(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, node.getText());
        PerformActionUtils.performAction(node, AccessibilityNodeInfoCompat.ACTION_SET_TEXT, args);
    }//  w w w  .  ja v a 2s  .  com
}

From source file:de.msal.shoutemo.fragments.OnlineUsersFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(INSTANCESTATE_TITLE, mTitle);
    outState.putParcelableArrayList(INSTANCESTATE_AUTHORS, (mAuthors));
}