Hello i have implemented the application based on the toggleButton selection. but while i close that application and then reopen it, it will get in to its default selection that is “off”.
So can any budy tell mw what should i have to save the state of the toogleButton selection and perform some action based on that toggleButton selection state. . .
Thanks.
Hello i have implemented the application based on the toggleButton selection. but while i
Share
Use SharedPreferences.
And this is how to retrieve the values:
I did not verify this code, but look at some examples on the net, it is easy!