I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks l
if you have a checkbox and you would like to fetch it's value ie true / false in any java file--
Use--
Context mContext; boolean checkFlag; checkFlag=PreferenceManager.getDefaultSharedPreferences(mContext).getBoolean(KEY,DEFAULT_VALUE);`