Secure SharedPreferences.
Public Member Functions | |
android.content.SharedPreferences | getSharedPreferences (String name, int mode) |
Access a preferences file in the BlackBerry secure store. More... | |
android.content.SharedPreferences getSharedPreferences | ( | String | name, |
int | mode | ||
) |
Call this method to access a preferences file stored in the BlackBerry secure store.
This method returns a SharedPreferences
object that can be used to take actions on the preferences file, such as reading and editing preference settings. The returned object implements the android.content.SharedPreferences
interface with the following exceptions:
MODE_PRIVATE
.See the android.content.SharedPreferences interface reference on android.com for details of the API.
Multiple preference files can be created, with different names. The preferences file name is specified as a parameter to this method. If a preferences file with the specified name doesn't exist at the time this method is called, an object reference is still returned. If an editor commit action is taken on the returned object, a new preferences file will be created, in the secure store.
name | String containing the name of the preferences file. |
mode | int specifying the operating mode of the preferences file, which must be MODE_PRIVATE . |
android.content.SharedPreferences
instance that can be used to access preferences.