Fixed problem so that on orientation change the ListView works normally as before and GridView ignore STATE_STATE in onRestoreInstance. A hack is required in the samples for the gridView to work properly after this changes on orientation change.