title: Android save Activity state in Parcelable class object
body: <p>in my application i many <code>onSaveInstanceState</code> in each activity and file, now after reading <a href="https://stackoverflow.com/questions/3172333/how-to-save-an-instance-of-a-custom-class-in-onsaveinstancestate/5130072#5130072">this link</a> to create <code>Parcelable</code> class i can not use that and save into this class</p>
  
  <p>default <code>onSaveInstanceState</code> is:</p>
  
  <pre><code>@Override
  public void onSaveInstanceState(Bundle savedInstanceState) {
      super.onSaveInstanceState(savedInstanceState);
      savedInstanceState.putBoolean("IsShowingExitDialogs", mIsShowingExitDialogs);
      savedInstanceState.getInt("LastMenuItemSelected", mLastMenuItemSelected);
  }
  </code></pre>
  
  <p>now i can not use this below line to save <code>IsShowingExitDialogs</code> or <code>LastMenuItemSelected</code> to Parcable class:</p>
  
  <pre><code>savedInstanceState.putParcelable("IsShowingExitDialogs", mIsShowingExitDialogs);
  savedInstanceState.putParcelable("IsShowingExitDialogs", mLastMenuItemSelected);
  </code></pre>