Sets and validates and persists the value of the preferences with the given type.
Syntax
public
void
setFloatPreference
(
String
key
,
float
value
) throws PreferencesException
Parameters
-
key –
The key of the preference
-
value –
The new value of the preference
Exceptions
-
PreferencesException class –
if the new value of the preference is invalid for any reasons