Java.Lang.JavaSystem.GetProperty Method
Returns the value of a particular system property or null if no such property exists.

Syntax

[Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string GetProperty (string prop)

Parameters

propertyName
the name of the system property to look up.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the value of a particular system property or null if no such property exists.

The following properties are always provided by the Dalvik VM and cannot be modified:

NameMeaningExample
file.separatorJava.IO.File.Separator/
java.class.pathSystem class path.
java.class.version(Not useful on Android)50.0
java.compiler(Not useful on Android)Empty
java.ext.dirs(Not useful on Android)Empty
java.homeLocation of the VM on the file system/system
java.io.tmpdirSee Java.IO.File.CreateTempFile(string, System.String)/sdcard
java.library.pathSearch path for JNI libraries/vendor/lib:/system/lib
java.vendorHuman-readable VM vendorThe Android Project
java.vendor.urlURL for VM vendor's web sitehttp://www.android.com/
java.version(Not useful on Android)0
java.specification.versionVM libraries version0.9
java.specification.vendorVM libraries vendorThe Android Project
java.specification.nameVM libraries nameDalvik Core Library
java.vm.versionVM implementation version1.2.0
java.vm.vendorVM implementation vendorThe Android Project
java.vm.nameVM implementation nameDalvik
java.vm.specification.versionVM specification version0.9
java.vm.specification.vendorVM specification vendorThe Android Project
java.vm.specification.nameVM specification nameDalvik Virtual Machine Specification
line.separatorThe system line separator\n
os.archOS architecturearmv7l
os.nameOS (kernel) nameLinux
os.versionOS (kernel) version2.6.32.9-g103d848
path.separatorSee Java.IO.File.PathSeparator:
user.dirBase of non-absolute paths/
user.home(Not useful on Android)Empty
user.name(Not useful on Android)Empty

It is an error to override anyone of these properties. Any attempt to do so will leave their values unchanged.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1