List of usage examples for android.os Bundle putParcelable
public void putParcelable(@Nullable String key, @Nullable Parcelable value)
From source file:at.tomtasche.reader.ui.activity.DocumentActivity.java
public UpLoader uploadUri(Uri uri) { Bundle bundle = new Bundle(); bundle.putParcelable(EXTRA_URI, uri); return (UpLoader) getSupportLoaderManager().restartLoader(1, bundle, this); }
From source file:ch.hesso.master.sweetcity.activity.report.ReportActivity.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { super.onSaveInstanceState(savedInstanceState); savedInstanceState.putIntegerArrayList("tagList", new ArrayList<Integer>(tagList.keySet())); savedInstanceState.putParcelable("image", bitmapPicture); }
From source file:org.klnusbaum.udj.EventListFragment.java
public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelable(LOCATION_STATE_EXTRA, lastKnown); outState.putInt(EVENT_SEARCH_TYPE_EXTRA, lastSearch.getSearchType()); if (lastSearch.getSearchType() == NameEventSearch.SEARCH_TYPE) { outState.putString(EVENT_SEARCH_QUERY, ((NameEventSearch) lastSearch).getQuery()); }//from w ww . j av a2 s. co m }
From source file:com.cerema.cloud2.ui.preview.PreviewTextFragment.java
/** * {@inheritDoc}/*from w w w .ja va 2s .c o m*/ */ @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelable(PreviewTextFragment.EXTRA_FILE, getFile()); outState.putParcelable(PreviewTextFragment.EXTRA_ACCOUNT, mAccount); }
From source file:com.example.alvarpao.popularmovies.MovieDetailFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { //Save movie details to be restored after rotation if (mMovie != null) savedInstanceState.putParcelable(MOVIE, mMovie); // Save current scroll position for the recycler view savedInstanceState.putInt(SCROLL_POSITION, ((LinearLayoutManager) mMovieDetailsRecyclerView.getLayoutManager()) .findFirstVisibleItemPosition()); }
From source file:com.business.rushour.businessapp.TabOwnerRegistrationActivity.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); // save file url in bundle as it will be null on scren orientation // changes// ww w . j a v a2s .c o m outState.putParcelable("file_uri", fileUri); }
From source file:com.facebook.login.DeviceAuthDialog.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (currentRequestState != null) { outState.putParcelable(REQUEST_STATE_KEY, currentRequestState); }//from w ww . jav a2 s . c o m }
From source file:com.business.rushour.businessapp.RiderMainActivity.java
/** * Here we store the file url as it will be null after returning from camera * app/*from w ww .j a v a 2 s . c om*/ */ @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); // save file url in bundle as it will be null on scren orientation // changes outState.putParcelable("file_uri", fileUri); }
From source file:com.beesham.popularmovies.DetailsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { if (mUri != null) { outState.putParcelable(DetailsFragment.DETAIL_URI, mUri); }//from www.ja va2s. co m super.onSaveInstanceState(outState); }