// Path: app/src/main/java/org/zarroboogs/smartzpn/SmartZpnApplication.java
// public class SmartZpnApplication extends Application {
//     private static Context mContext;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = this.getApplicationContext();
//     }
// 
//     public static Context getContext() {
//         return mContext;
//     }
// }


import android.content.Context;
import android.content.SharedPreferences;
import org.zarroboogs.smartzpn.SmartZpnApplication;
package org.zarroboogs.smartzpn.utils;



/**
 * Created by wangdiyuan on 15-8-13.
 */
public class TokenUtils {
    private static final String TOKEN = "token";
    private static final String SPEC = "spec";

// Path: app/src/main/java/org/zarroboogs/smartzpn/SmartZpnApplication.java
// public class SmartZpnApplication extends Application {
//     private static Context mContext;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = this.getApplicationContext();
//     }
// 
//     public static Context getContext() {
//         return mContext;
//     }
// }


// Path: app/src/main/java/org/zarroboogs/smartzpn/utils/TokenUtils.java
import android.content.Context;
import android.content.SharedPreferences;
import org.zarroboogs.smartzpn.SmartZpnApplication;

package org.zarroboogs.smartzpn.utils;



/**
 * Created by wangdiyuan on 15-8-13.
 */
public class TokenUtils {
    private static final String TOKEN = "token";
    private static final String SPEC = "spec";

    private static SharedPreferences mSharedPreferences = SmartZpnApplication.getContext().getSharedPreferences(SmartZpnApplication.getContext().getPackageName(), Context.MODE_PRIVATE);