update android app retain state