List of usage examples for android.os Bundle putSerializable
@Override public void putSerializable(@Nullable String key, @Nullable Serializable value)
From source file:com.gh4a.activities.IssueEditActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mEditIssue != null) { outState.putSerializable(STATE_KEY_ISSUE, mEditIssue); }//from www . jav a2 s . co m }
From source file:com.sayar.requests.RequestArguments.java
public void writeToParcel(final Parcel dest, final int flags) { dest.writeString(this.method.toValue()); dest.writeString(this.url); dest.writeString(this.userAgent); dest.writeString(this.parseAs); final Bundle params = new Bundle(); params.putSerializable("map", (Serializable) this.params); dest.writeBundle(params);/*from w ww . j av a2 s. c o m*/ final Bundle headers = new Bundle(); params.putSerializable("map", (Serializable) this.headers); dest.writeBundle(headers); }
From source file:augsburg.se.alltagsguide.overview.OverviewActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putSerializable(OTHER_LANGUAGES_KEY, new ArrayList<>(mOtherLanguages)); outState.putBoolean(SAVE_INSTANCE_STATE_NAVIGATION_DRAWER_OPEN, drawerLayout.isDrawerOpen(GravityCompat.START)); super.onSaveInstanceState(outState); }
From source file:org.openhab.habdroid.ui.OpenHABRoomSettingActivity.java
@Override public void onEditClickListener(int pos) { // TODO Auto-generated method stub OpenHABWidget w = openHABWidgetDataSource.getWidgets().get(pos); Intent i = new Intent(OpenHABRoomSettingActivity.this, ChangeItemActivity.class); Bundle data = new Bundle(); if (!w.getType().equalsIgnoreCase("group")) { data.putSerializable(ChangeItemActivity.GROUP_KEY, groupList); data.putString(ChangeItemActivity.PARENT_KEY, currPID); }/*from ww w. j a v a2 s. c o m*/ data.putSerializable(ChangeItemActivity.ITEM_KEY, w); data.putString(ChangeItemActivity.SITE_KEY, sitemapRootUrl); i.putExtras(data); startActivity(i); }
From source file:augsburg.se.alltagsguide.overview.OverviewActivity.java
private void loadOtherLanguages(LoadingType type) { Bundle bundle = new Bundle(); bundle.putSerializable(LOADING_TYPE_KEY, type); getSupportLoaderManager().restartLoader(0, bundle, this); }
From source file:at.ac.tuwien.detlef.fragments.EpisodeListFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); /*/*from w w w .ja v a 2 s. c o m*/ * Save the currently selected podcast's ID in order to be able to * restore filter settings later on. */ outState.putSerializable(BUNDLE_FILTERS, getFilter()); long id = (filteredByPodcast == null ? ID_NONE : filteredByPodcast.getId()); outState.putLong(BUNDLE_SELECTED_PODCAST, id); }
From source file:name.gumartinm.weather.information.fragment.current.CurrentFragment.java
@Override public void onSaveInstanceState(final Bundle savedInstanceState) { // Save UI state final PermanentStorage store = new PermanentStorage(this.getActivity().getApplicationContext()); final Current current = store.getCurrent(); if (current != null) { savedInstanceState.putSerializable("Current", current); }// w w w . j a v a 2s. c o m super.onSaveInstanceState(savedInstanceState); }
From source file:com.fa.mastodon.activity.AccountActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putString("accountId", accountId); outState.putSerializable("followState", followState); outState.putBoolean("blocking", blocking); outState.putBoolean("muting", muting); super.onSaveInstanceState(outState); }
From source file:com.fa.mastodon.activity.EditProfileActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putString("priorDisplayName", priorDisplayName); outState.putString("priorNote", priorNote); outState.putBoolean("isAlreadySaving", isAlreadySaving); outState.putSerializable("currentlyPicking", currentlyPicking); outState.putString("avatarBase64", avatarBase64); outState.putString("headerBase64", headerBase64); super.onSaveInstanceState(outState); }
From source file:com.esri.arcgisruntime.sample.rgbrenderer.MainActivity.java
@Override public boolean onOptionsItemSelected(MenuItem item) { //send parameters to fragment ParametersDialogFragment paramDialog = new ParametersDialogFragment(); Bundle rgbParameters = new Bundle(); rgbParameters.putInt("minR", mMinR); rgbParameters.putInt("maxR", mMaxR); rgbParameters.putInt("minG", mMinG); rgbParameters.putInt("maxG", mMaxG); rgbParameters.putInt("minB", mMinB); rgbParameters.putInt("maxB", mMaxB); rgbParameters.putInt("percent_clip_min", mPercentClipMin); rgbParameters.putInt("percent_clip_max", mPercentClipMax); rgbParameters.putInt("std_dev_factor", mStdDevFactor); rgbParameters.putSerializable("stretch_type", mStretchType); paramDialog.setArguments(rgbParameters); paramDialog.show(mFragmentManager, "param_dialog"); return super.onOptionsItemSelected(item); }