and onSaveInstanceState and onRestoreInstanceState function in
MainActivity