private String getPositiveButtonText ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . positive_button_text_preference_key ) ; String defaultValue = getString ( R . string . positive_button_text_preference_default_value ) ; return sharedPreferences . getString ( key , defaultValue ) ; }
Returns the text of the example dialog s positive button .