Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.lang.reflect.Method;

public class Main {
    public static String getSystemProperties(String key) {
        try {
            Class osSystem = Class.forName("android.os.SystemProperties");
            Method getInvoke = osSystem.getMethod("get", new Class[] { String.class });
            return (String) getInvoke.invoke(osSystem, new Object[] { key });
        } catch (Exception e1) {
            e1.printStackTrace();
        }
        return "";
    }
}