private boolean shouldMessageBeShown ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . show_dialog_message_preference_key ) ; boolean defaultValue = getResources ( ) . getBoolean ( R . bool . show_dialog_message_preference_default_value ) ; return sharedPreferences . getBoolean ( key , defaultValue ) ; }
Returns whether the message of the example dialog should be shown or not .