Android examples for android.os:SystemProperties
get System Property
import java.lang.reflect.Method; public class Main { public static String getSystemProperty(String key) { String pValue = null;// w ww .java 2 s . c o m try { Class<?> c = Class.forName("android.os.SystemProperties"); Method m = c.getMethod("get", String.class); pValue = m.invoke(null, key).toString(); } catch (Exception e) { } return pValue; } }