Example usage for android.os Bundle putSerializable

List of usage examples for android.os Bundle putSerializable

Introduction

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

Prototype

@Override
public void putSerializable(@Nullable String key, @Nullable Serializable value) 

Source Link

Document

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

Usage

From source file:ca.rmen.android.scrumchatter.meeting.detail.MeetingPagerAdapter.java

@Override
public Fragment getItem(int position) {
    Log.v(TAG, "getItem at position " + position);
    MeetingFragment fragment = new MeetingFragment();
    Bundle args = new Bundle(1);
    mCursor.moveToPosition(position);/*ww  w.  j  av a  2 s.  c o  m*/
    args.putLong(Meetings.EXTRA_MEETING_ID, mCursor.getId());
    args.putSerializable(Meetings.EXTRA_MEETING_STATE, mCursor.getState());
    fragment.setArguments(args);
    return fragment;
}

From source file:com.foursquare.android.nativeoauth.TokenExchangeActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putSerializable(INTENT_EXTRA_TOKEN_EXCHANGE_TASK, mTask);
}

From source file:org.mifos.androidclient.main.CentersListActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putSerializable(CustomersData.BUNDLE_KEY, mCustomersData);
}

From source file:com.devspacenine.poolpal.fragment.DatePickerDialogFragment.java

@Override
public void onSaveInstanceState(Bundle out) {

    super.onSaveInstanceState(out);
    out.putSerializable(PoolPal.EXTRA_TIME, getTime());
}

From source file:org.mifos.androidclient.main.CustomerChargesDetailsActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putSerializable(CustomerChargesDetails.BUNDLE_KEY, mDetails);
}

From source file:com.meetingninja.csse.agenda.AgendaActivity.java

@Override
protected void onSaveInstanceState(final Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putSerializable("treeManager", manager);
    outState.putBoolean("collapsible", this.collapsible);
    outState.putParcelable(Keys.Agenda.PARCEL, new AgendaParcel(displayedAgenda));
}

From source file:com.github.mobile.ui.issue.IssuesFragment.java

@Override
public void onCreateOptionsMenu(Menu optionsMenu, MenuInflater inflater) {
    inflater.inflate(R.menu.issues, optionsMenu);

    SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);
    MenuItem searchItem = optionsMenu.findItem(R.id.m_search);
    SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);
    searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));

    Bundle args = new Bundle();
    args.putSerializable(EXTRA_REPOSITORY, repository);
    searchView.setAppSearchData(args);/*from  w  w w  . j a v a2s  .  c  om*/
}

From source file:com.android.fpuna.activityrecognition.MainActivity.java

/**
 * Stores the list of detected activities in the Bundle.
 *//*from w w  w .j a  v a 2  s .  c om*/
public void onSaveInstanceState(Bundle savedInstanceState) {
    savedInstanceState.putSerializable(Constants.DETECTED_ACTIVITIES, mDetectedActivities);
    super.onSaveInstanceState(savedInstanceState);
}

From source file:augsburg.se.alltagsguide.utilities.ui.BasePageWebViewLanguageActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    outState.putSerializable(PAGE_STATE, mPage);
    outState.putBoolean(TRANSLATED_DISMISSED, mTranslatedDismissed);
    super.onSaveInstanceState(outState);
}

From source file:com.kccomy.orgar.ui.note.NotePresenter.java

@Override
public void newNode() {
    Fragment editFragment = new NodeEditorFragment();
    Bundle bundle = new Bundle();
    bundle.putString("action", NodeEditorFragment.EditAction.NEW.toString());
    bundle.putSerializable("serialized_org_file", serializedOrgFile);
    editFragment.setArguments(bundle);//from   w  w  w  .  jav  a2s  . c o m
    view.showNodeEditorFragment(editFragment);
}