Close #3 Override get preferences to get secure preferences with ENCRYPT flag enabled or unencrypted preferences with flag disabled. Removed preferences instance from activity and fragment. Added test examples.