Java tutorial
//package com.java2s; import java.lang.reflect.Method; public class Main { public static String getProp(String prop) { String output = ""; try { Class<?> sp = Class.forName("android.os.SystemProperties"); Method get = sp.getMethod("get", String.class); output = (String) get.invoke(null, prop); } catch (Exception e) { e.printStackTrace(); } return output; } }