Condividi tramite


Preferences.SystemRoot Method

Definition

<strong>WARNING:</strong> On Android, the Preference nodes corresponding to the "system" and "user" preferences are stored in sections of the file system that are inaccessible to apps.

[Android.Runtime.Register("systemRoot", "()Ljava/util/prefs/Preferences;", "")]
public static Java.Util.Prefs.Preferences? SystemRoot ();
[<Android.Runtime.Register("systemRoot", "()Ljava/util/prefs/Preferences;", "")>]
static member SystemRoot : unit -> Java.Util.Prefs.Preferences

Returns

the root preference node for the system.

Attributes

Remarks

<strong>WARNING:</strong> On Android, the Preference nodes corresponding to the "system" and "user" preferences are stored in sections of the file system that are inaccessible to apps. Further, allowing apps to set "system wide" preferences is contrary to android's security model.

Returns the root preference node for the system.

Java documentation for java.util.prefs.Preferences.systemRoot().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to