We can resort to using onSaveInstanceState to save the selected images when the activity restarts due to changes in the orientation but we will have to save the HashSet of the images there which cannot be done via the API.
We need to save such things using DB within the app and restore this data when the activity restarts.
We can resort to using onSaveInstanceState to save the selected images when the activity restarts due to changes in the orientation but we will have to save the HashSet of the images there which cannot be done via the API.
We need to save such things using DB within the app and restore this data when the activity restarts.