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://developer.android.com/guide/topics/ui/menus.html#checkable 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? 回答1: One way is to call the