示例#1
0
 @Override
 protected void onSaveInstanceState(final Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putDouble(SAVED_STATE_RATING, rating);
   outState.putInt(SAVED_STATE_TYPE, typeSelected.id);
   outState.putLong(SAVED_STATE_DATE, date.getTimeInMillis());
   outState.putParcelable(SAVED_STATE_IMAGE, image);
   outState.putInt(SAVED_STATE_FAVPOINTS, premFavPoints);
 }
示例#2
0
 @Override
 protected void onSaveInstanceState(final Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putDouble(SAVED_STATE_RATING, rating);
   outState.putInt(SAVED_STATE_TYPE, typeSelected.id);
   outState.putLong(SAVED_STATE_DATE, date.getTimeInMillis());
   outState.putString(SAVED_STATE_IMAGE_URI, imageUri.getPath());
   outState.putString(SAVED_STATE_IMAGE_CAPTION, imageCaption);
   outState.putString(SAVED_STATE_IMAGE_DESCRIPTION, imageDescription);
 }