// 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.widget.Toast;
import com.idisfkj.hightcopywx.App;
package com.idisfkj.hightcopywx.util;



/**
 * Toast工具类
 * Created by idisfkj on 16/4/21.
 * Email : idisfkj@qq.com.
 */
public class ToastUtils {

    public ToastUtils() {
    }

    public static void showShort(CharSequence text){
// 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/ToastUtils.java
import android.widget.Toast;
import com.idisfkj.hightcopywx.App;

package com.idisfkj.hightcopywx.util;



/**
 * Toast工具类
 * Created by idisfkj on 16/4/21.
 * Email : idisfkj@qq.com.
 */
public class ToastUtils {

    public ToastUtils() {
    }

    public static void showShort(CharSequence text){
        Toast.makeText(App.getAppContext(),text,Toast.LENGTH_SHORT).show();