dimanche 16 mai 2021

How to save checkbox states temporary in android?

Im working on a project and implemented a working filter function. A user could choose different options to get filtered results of database data.

The filter is inside a dialogfragment. If the user choose different options and press a button these values are set and the dialog is dismissed.

I need to store the checkbox states temporary if the user clicks on the filter again it should show the selected checkboxes with their states. How to save the states of checkboxes and also some strings temporary and not forever?




Aucun commentaire:

Enregistrer un commentaire