// Path: app/src/main/java/com/idisfkj/hightcopywx/App.java
// public class App extends Application{
//     private static Context mContext;
//     public static final String APP_ID = "2882303761517464903";
//     public static final String APP_KEY = "5631746467903";
//     public static final String APP_SECRET_KEY = "HxMA7STSUQMLEiDX+zo+5A==";
//     public static final String TAG = "com.idisfkj.hightcopywx";
//     public static final String DEVELOPER_ID = "/f6ukNwIPpdSmkrgsmklcMbW6WefG01XkxdILDNEUVw=";
//     public static final String DEVELOPER_NUMBER = "666666";
//     public static final String DEVELOPER_NAME = "idisfkj";
//     public static final String DEVELOPER_MESSAGE = "欢迎注册高仿微信App,我是该App的开发者，你可以使用添加朋友自行互动测试！如有问题可以在此留言与我。";
//     public static final String HELLO_MESSAGE = "你已添加了%s，现在可以开始聊天了";
//     public static final String UNREADNUM = "unReadNum";
//     public static String mNumber = "-1";
//     public static String mRegId = "-1";
//     public static SharedPreferences sp;
//     public static SharedPreferences.Editor editor;
// 
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = getApplicationContext();
//         sp = getSharedPreferences("userInfo",Context.MODE_PRIVATE);
// 
//         //初始化push推送服务
//         if(shouldInit()) {
//             MiPushClient.registerPush(this, APP_ID, APP_KEY);
//         }
// 
//         //小米推送调试日记
//         LoggerInterface newLogger = new LoggerInterface() {
//             @Override
//             public void setTag(String tag) {
//                 // ignore
//             }
//             @Override
//             public void log(String content, Throwable t) {
//                 Log.d(TAG, content, t);
//             }
//             @Override
//             public void log(String content) {
//                 Log.d(TAG, content);
//             }
//         };
//         Logger.setLogger(this, newLogger);
// 
//     }
// 
//     private boolean shouldInit() {
//         ActivityManager am = ((ActivityManager) getSystemService(Context.ACTIVITY_SERVICE));
//         List<ActivityManager.RunningAppProcessInfo> processInfos = am.getRunningAppProcesses();
//         String mainProcessName = getPackageName();
//         int myPid = android.os.Process.myPid();
//         for (ActivityManager.RunningAppProcessInfo info : processInfos) {
//             if (info.pid == myPid && mainProcessName.equals(info.processName)) {
//                 return true;
//             }
//         }
//         return false;
//     }
// 
//     public static Context getAppContext(){
//         return mContext;
//     }
// }


import android.content.SharedPreferences;
import com.idisfkj.hightcopywx.App;
package com.idisfkj.hightcopywx.util;



/** SharedPreferences 工具类
 * Created by idisfkj on 16/4/28.
 * Email : idisfkj@qq.com.
 */
public class SPUtils {
    public SPUtils() {
    }
    public static SharedPreferences.Editor putString(String key, String value){
// Path: app/src/main/java/com/idisfkj/hightcopywx/App.java
// public class App extends Application{
//     private static Context mContext;
//     public static final String APP_ID = "2882303761517464903";
//     public static final String APP_KEY = "5631746467903";
//     public static final String APP_SECRET_KEY = "HxMA7STSUQMLEiDX+zo+5A==";
//     public static final String TAG = "com.idisfkj.hightcopywx";
//     public static final String DEVELOPER_ID = "/f6ukNwIPpdSmkrgsmklcMbW6WefG01XkxdILDNEUVw=";
//     public static final String DEVELOPER_NUMBER = "666666";
//     public static final String DEVELOPER_NAME = "idisfkj";
//     public static final String DEVELOPER_MESSAGE = "欢迎注册高仿微信App,我是该App的开发者，你可以使用添加朋友自行互动测试！如有问题可以在此留言与我。";
//     public static final String HELLO_MESSAGE = "你已添加了%s，现在可以开始聊天了";
//     public static final String UNREADNUM = "unReadNum";
//     public static String mNumber = "-1";
//     public static String mRegId = "-1";
//     public static SharedPreferences sp;
//     public static SharedPreferences.Editor editor;
// 
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = getApplicationContext();
//         sp = getSharedPreferences("userInfo",Context.MODE_PRIVATE);
// 
//         //初始化push推送服务
//         if(shouldInit()) {
//             MiPushClient.registerPush(this, APP_ID, APP_KEY);
//         }
// 
//         //小米推送调试日记
//         LoggerInterface newLogger = new LoggerInterface() {
//             @Override
//             public void setTag(String tag) {
//                 // ignore
//             }
//             @Override
//             public void log(String content, Throwable t) {
//                 Log.d(TAG, content, t);
//             }
//             @Override
//             public void log(String content) {
//                 Log.d(TAG, content);
//             }
//         };
//         Logger.setLogger(this, newLogger);
// 
//     }
// 
//     private boolean shouldInit() {
//         ActivityManager am = ((ActivityManager) getSystemService(Context.ACTIVITY_SERVICE));
//         List<ActivityManager.RunningAppProcessInfo> processInfos = am.getRunningAppProcesses();
//         String mainProcessName = getPackageName();
//         int myPid = android.os.Process.myPid();
//         for (ActivityManager.RunningAppProcessInfo info : processInfos) {
//             if (info.pid == myPid && mainProcessName.equals(info.processName)) {
//                 return true;
//             }
//         }
//         return false;
//     }
// 
//     public static Context getAppContext(){
//         return mContext;
//     }
// }


// Path: app/src/main/java/com/idisfkj/hightcopywx/util/SPUtils.java
import android.content.SharedPreferences;
import com.idisfkj.hightcopywx.App;

package com.idisfkj.hightcopywx.util;



/** SharedPreferences 工具类
 * Created by idisfkj on 16/4/28.
 * Email : idisfkj@qq.com.
 */
public class SPUtils {
    public SPUtils() {
    }
    public static SharedPreferences.Editor putString(String key, String value){
        App.editor = App.sp.edit();