// Path: app/src/main/java/me/codpoe/onlyweather/base/BaseApplication.java
// public class BaseApplication extends Application {
// 
//     public static Context mAppContext = null;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mAppContext = getApplicationContext();
//         FIR.init(this);
//     }
// 
//     public static Context getAppContext() {
//         return mAppContext;
//     }
// 
// }


import android.content.Context;
import android.content.SharedPreferences;
import me.codpoe.onlyweather.base.BaseApplication;
package me.codpoe.onlyweather.util;



/**
 * Created by Codpoe on 2016/5/23.
 */
public class SettingUtils {

    private static SettingUtils mSettingUtils;
    private SharedPreferences mPrefs;

    // 私有化构造方法
    private SettingUtils() {
// Path: app/src/main/java/me/codpoe/onlyweather/base/BaseApplication.java
// public class BaseApplication extends Application {
// 
//     public static Context mAppContext = null;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mAppContext = getApplicationContext();
//         FIR.init(this);
//     }
// 
//     public static Context getAppContext() {
//         return mAppContext;
//     }
// 
// }


// Path: app/src/main/java/me/codpoe/onlyweather/util/SettingUtils.java
import android.content.Context;
import android.content.SharedPreferences;
import me.codpoe.onlyweather.base.BaseApplication;

package me.codpoe.onlyweather.util;



/**
 * Created by Codpoe on 2016/5/23.
 */
public class SettingUtils {

    private static SettingUtils mSettingUtils;
    private SharedPreferences mPrefs;

    // 私有化构造方法
    private SettingUtils() {
        mPrefs = BaseApplication.getAppContext().getSharedPreferences("setting", Context.MODE_PRIVATE);