package com.founder.ics.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* 配置文件操作工具类
* @author GaoJR
*
*/
public class ConfigUtil {
private static final String CONFIG_FILE = "ICS_CONF";
//读取配置参数
public static String read(Context context,String key,String defValue){
SharedPreferences sp = context.getSharedPreferences(CONFIG_FILE,0);
return sp.getString(key, defValue);
}
public static long read(Context context,String key,long defValue){
SharedPreferences sp = co
import android.content.Context;
import android.content.SharedPreferences;
/**
* 配置文件操作工具类
* @author GaoJR
*
*/
public class ConfigUtil {
private static final String CONFIG_FILE = "ICS_CONF";
//读取配置参数
public static String read(Context context,String key,String defValue){
SharedPreferences sp = context.getSharedPreferences(CONFIG_FILE,0);
return sp.getString(key, defValue);
}
public static long read(Context context,String key,long defValue){
SharedPreferences sp = co