Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
- Boolean isEnabled = prefs.getBoolean("ANALYTICS", false);
- if (isEnabled == true) {
- Toast.makeText(getBaseContext(), "True", 0).show();
- }
- if (isEnabled == false) {
- Toast.makeText(getBaseContext(), "False", 0).show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement