Skip to content

SL4A PreferencesFacade

michael edited this page Nov 9, 2015 · 1 revision

This facade allows access to the Preferences interface.

Notes:
filename - Filename indicates which preference file to refer to. If no filename is supplied (the default) then the SharedPreferences uses is the default for the SL4A application.
prefPutValue - uses "MODE_PRIVATE" when writing to preferences. Save values to the default shared preferences is explicitly disallowed.
prefGetAll Get list of Shared Preference Values
filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)
returns: (Map) Map of key,value
prefGetValue Read a value from shared preferences
key (String)
filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)
prefPutValue Write a value to shared preferences
key (String)
value (Object)
filename (String) Desired preferences file. If not defined, uses the default Shared Preferences. (optional)
Clone this wiki locally