Back to project page M3UPlayer.
The source code is released under:
Apache License
If you think the Android project M3UPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.iptv.utils; //w w w.jav a 2 s.c o m import java.lang.reflect.Method; public class SystemProperties { private static Class<?> mClassType = null; private static Method mGetMethod = null; private static void init() { try { if (mClassType == null) { mClassType = Class.forName("android.os.SystemProperties"); mGetMethod = mClassType.getDeclaredMethod("get", String.class); } } catch (Exception e) { } } public static String get(String key, String defaultValue) { init(); String value = null; try { value = (String) mGetMethod.invoke(mClassType, key); } catch (Exception e) { } return (value == null || value.trim().equals("")) ? defaultValue : value; } }