I am working with ICS android and using the MultiSlectListPreference. Please can anyone tell me how do I get the state of the check box that is there in the dialog. I just want to read the state of the check box.(true/false)
thankyou
I would do something like
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
pref.getBoolean(<key>, <default value>);
Where key is specified in your XML file by android:key, and default value is well, the default value.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.