Android Open Source - M3UPlayer System Properties






From Project

Back to project page M3UPlayer.

License

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.

Java Source Code

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;
  }
}




Java Source Code List

com.iptv.parser.M3UFile.java
com.iptv.parser.M3UHandler.java
com.iptv.parser.M3UHead.java
com.iptv.parser.M3UItem.java
com.iptv.parser.M3UParser.java
com.iptv.parser.M3UToolSet.java
com.iptv.parser.package-info.java
com.iptv.player.Player.java
com.iptv.utils.BaseActivity.java
com.iptv.utils.FileBrowser.java
com.iptv.utils.Interlude.java
com.iptv.utils.MessageBox.java
com.iptv.utils.SystemProperties.java