yy1717
2020-09-29 2cfc22e1ea5140861499ee5b7142766fb8f754f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.anyun.exam.lib.util;
 
import android.content.Context;
 
import java.io.InputStream;
import java.util.Properties;
 
public class ProperUtil {
    public static Properties getProperties(Context c){
        Properties props = null;
 
        try {
            InputStream in = c.getAssets().open("appConfig");
            if (in != null) {
                props = new Properties();
                props.load(in);
                in.close();
            }
        } catch (Exception e1) {
            // TODO Auto-generated catch block
        }
 
        return props;
    }
}