How do i save the state of all the fields i have in my class that extends View?
@Override
protected Parcelable onSaveInstanceState() {
    Parcelable localState = super.onSaveInstanceState();
    Bundle bundle = new Bundle();
    bundle.putSerializable("gameEngine", this.gameEngine);
    bundle.putParcelable("inherited", localState);
    return bundle;
}
@Override
protected void onRestoreInstanceState(Parcelable localState) {
    Bundle bundle = (Bundle) localState;
    this.gameEngine = ((GameEngine) bundle.getSerializable("gameEngine"));
    super.onRestoreInstanceState(bundle.getParcelable("inherited"));
}
This doesn't seem to save the fields.
Thanks.
 
     
    