List of usage examples for android.os Bundle putParcelableArrayList
public void putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value)
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)); }
From source file:com.example.run_tracker.MyRunsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { Log.v(TAG, "onSaveInstanceState"); super.onSaveInstanceState(outState); outState.putParcelableArrayList("tracklist", (ArrayList<? extends Parcelable>) mTracks); // Save the fragment's state here }
From source file:org.orange.querysystem.CoursesInThisWeekActivity.java
public void showCoursesInfo(List<Course> courses, CourseToSimpleCourse converter) { mTabsAdapter.clear();//from ww w . j a v a 2 s. c o m Bundle[] args = new Bundle[8]; List<SimpleCourse>[][] lesson = AllCoursesActivity.getTimeTable(courses, converter, SettingsActivity.getCurrentWeekNumber(this)); //?ListCoursesFragment? for (int dayOfWeek = 0; dayOfWeek <= 7; dayOfWeek++) { ArrayList<SimpleCourse> coursesInADay = new ArrayList<SimpleCourse>(); for (int period = 1; period < lesson[dayOfWeek].length; period++) { for (SimpleCourse course : lesson[dayOfWeek][period]) { coursesInADay.add(course); } } Bundle argForFragment = new Bundle(); argForFragment.putParcelableArrayList(ListCoursesFragment.COURSES_KEY, coursesInADay); args[dayOfWeek] = argForFragment; } //?args[0]args[7]? Bundle temp = args[0]; args[0] = args[7]; args[7] = temp; String[] daysOfWeek = getResources().getStringArray(R.array.days_of_week); for (int day = 0; day <= 7; day++) { TabSpec tabSpec = mTabHost.newTabSpec(daysOfWeek[day]); mTabsAdapter.addTab(tabSpec.setIndicator(daysOfWeek[day]), ListCoursesFragment.class, args[day]); } int dayOfWeek = Calendar.getInstance().get(Calendar.DAY_OF_WEEK); mTabHost.setCurrentTab(dayOfWeek != Calendar.SUNDAY ? dayOfWeek - Calendar.SUNDAY : 7); }
From source file:com.perm.DoomPlay.SearchVkActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (audios != null) outState.putParcelableArrayList("storeAudioSearch", audios); }
From source file:de.uni_koblenz_landau.apow.ObsListFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putString(ARG_TITLE, mTitle); savedInstanceState.putParcelableArrayList(ARG_OBS, (ArrayList<ListViewItem>) mObs); super.onSaveInstanceState(savedInstanceState); }
From source file:de.skubware.opentraining.activity.create_exercise.ImageFragment.java
/** * Save instance state, e.g. for rotation. *///from w w w. j a va2 s .c o m public void onSaveInstanceState(Bundle savedState) { super.onSaveInstanceState(savedState); savedState.putParcelableArrayList(KEY_IMAGELIST_ADAPTER_DATA, mImageList); }
From source file:ru.yandex.subtitles.ui.activity.QuestionnaireActivity.java
@Override protected void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); outState.putInt(KEY_TOTAL_QUESTIONS, mTotalQuestions); outState.putParcelableArrayList(KEY_ANSWERED, new ArrayList<Question>(mAnswered)); }
From source file:com.amaze.filemanager.fragments.AppsList.java
@Override public void onSaveInstanceState(Bundle b) { super.onSaveInstanceState(b); if (vl != null) { b.putParcelableArrayList("c", c); b.putParcelableArrayList("list", a); int index = vl.getFirstVisiblePosition(); View vi = vl.getChildAt(0); int top = (vi == null) ? 0 : vi.getTop(); b.putInt("index", index); b.putInt("top", top); }//from ww w. j a v a 2 s .co m }
From source file:de.vanita5.twittnuker.fragment.support.ParcelableStatusesListFragment.java
@Override public void onSaveInstanceState(final Bundle outState) { final List<ParcelableStatus> data = getData(); if (data != null) { outState.putParcelableArrayList(EXTRA_DATA, new ArrayList<ParcelableStatus>(data)); }//from w w w . j av a2s .co m super.onSaveInstanceState(outState); }
From source file:de.gruenewald.udacity.spotifystreamer.TrackFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putString(SAVEDINSTANCE_TITLE, mTitle); outState.putInt(SAVEDINSTANCE_RESULTS, mNofResults); outState.putInt(SAVEDINSTANCE_POSITION, mTrackListPosition); outState.putParcelableArrayList(SAVEDINSTANCE_LIST, mTrackListEntries); super.onSaveInstanceState(outState); }