vendredi 29 avril 2016

Android Persistent Checkable Menu in Custom Widget After Reboot Android

Hi I designed a custom toolbar to replace the action bar with a popup menu, using the hints from

how to save menuitem visibility state through sharedpreferences?

and

Checkbox item state on menu android

and

http://ift.tt/1SytdhE

The most effective way is to store the state in shared preferences as in the stackoverflow answers.

My question is: How do I keep the checked option selected even after restarting my android?




Aucun commentaire:

Enregistrer un commentaire