List of usage examples for android.os Bundle putSerializable
@Override public void putSerializable(@Nullable String key, @Nullable Serializable value)
From source file:za.co.neilson.alarm.preferences.AlarmPreferencesActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putSerializable("alarm", getMathAlarm()); outState.putSerializable("adapter", (AlarmPreferenceListAdapter) getListAdapter()); }
From source file:com.barak.pix.PostsFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { // Save currently selected layout manager. int recyclerViewScrollPosition = getRecyclerViewScrollPosition(); Log.d(TAG, "Recycler view scroll position: " + recyclerViewScrollPosition); savedInstanceState.putSerializable(KEY_LAYOUT_POSITION, recyclerViewScrollPosition); super.onSaveInstanceState(savedInstanceState); }
From source file:com.romanenco.gitt.BrowserActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable(REPO, current); outState.putSerializable(PATH, path); outState.putInt(FILTER, filterBar.getVisibility()); }
From source file:be.brunoparmentier.openbikesharing.app.activities.StationsListActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable("bikeNetwork", bikeNetwork); outState.putSerializable("stations", stations); outState.putSerializable("favStations", favStations); }
From source file:com.bukanir.android.activities.MoviesListActivity.java
@Override public void onSaveInstanceState(Bundle outState) { Log.d(TAG, "onSaveInstanceState"); //super.onSaveInstanceState(outState); outState.putSerializable("movies", movies); outState.putInt(STATE_SELECTED_NAVIGATION_ITEM, getSupportActionBar().getSelectedNavigationIndex()); }
From source file:cmput301.f13t01.editstory.EditStoryActivity.java
@Override /**//from ww w . j a v a2s. c o m * Generate instance state */ public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(getResources().getString(R.string.story_is_new), isNew); outState.putSerializable(getResources().getString(R.string.story_id), storyId); }
From source file:com.kopysoft.chronos.activities.ClockActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putInt("position", getSupportActionBar().getSelectedTab().getPosition()); outState.putSerializable("payPeriod", payHolder); super.onSaveInstanceState(outState); }
From source file:com.duy.ascii.sharedcode.image.ImageToAsciiActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mOriginalUri != null) outState.putParcelable("origin_uri", mOriginalUri); if (mResultFile != null) outState.putSerializable("result_file", mResultFile); }
From source file:com.deliciousdroid.fragment.ViewBookmarkFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putSerializable(STATE_VIEWTYPE, viewType); super.onSaveInstanceState(savedInstanceState); }
From source file:com.kunze.androidlocaltodo.TaskActivityFragment.java
@Override public void onSaveInstanceState(Bundle outState) { Log("onSaveInstanceState"); mProgrammaticChange = true;/*ww w . j a va 2 s.c om*/ outState.putSerializable("mNewTask", mNewTask); super.onSaveInstanceState(outState); }