// Path: app/src/main/java/com/sola/v2ex_android/ui/base/application/MyApplication.java
// public class MyApplication extends Application {
// 
//     private static Context context;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         //获取Context
//         context = getApplicationContext();
//         ToastUtil.init(this);
//         SharedPreferencesUtils.init(this);
//         V2exUser.init();
//     }
// 
//     //返回
//     public static Context getContextObject() {
//         return context;
//     }
// 
// 
// 
// }


import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.ClipboardManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.ResolveInfo;
import android.graphics.Point;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.os.PowerManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import com.sola.v2ex_android.ui.base.application.MyApplication;
import java.io.File;
import java.lang.reflect.Field;
import java.text.NumberFormat;
import java.util.List;
        }
    }

    public static boolean isPackageExist(String pckName) {
        try {
            PackageInfo pckInfo = MyApplication.getContextObject().getPackageManager()
                    .getPackageInfo(pckName, 0);
            if (pckInfo != null)
                return true;
        } catch (NameNotFoundException e) {
        }
        return false;
    }

    public static void hideAnimatedView(View view) {
        if (PRE_HC && view != null)
            view.setPadding(view.getWidth(), 0, 0, 0);
    }

    public static void hideSoftKeyboard(View view) {
        if (view == null)
            return;
        ((InputMethodManager) MyApplication.getContextObject().getSystemService(
                Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(
                view.getWindowToken(), 0);
    }

    public static boolean isLandscape() {
        boolean flag;
        if (MyApplication.getContextObject().getResources().getConfiguration().orientation == 2)
// Path: app/src/main/java/com/sola/v2ex_android/ui/base/application/MyApplication.java
// public class MyApplication extends Application {
// 
//     private static Context context;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         //获取Context
//         context = getApplicationContext();
//         ToastUtil.init(this);
//         SharedPreferencesUtils.init(this);
//         V2exUser.init();
//     }
// 
//     //返回
//     public static Context getContextObject() {
//         return context;
//     }
// 
// 
// 
// }


// Path: app/src/main/java/com/sola/v2ex_android/util/TDevice.java
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.ClipboardManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.ResolveInfo;
import android.graphics.Point;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.os.PowerManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import com.sola.v2ex_android.ui.base.application.MyApplication;
import java.io.File;
import java.lang.reflect.Field;
import java.text.NumberFormat;
import java.util.List;

        }
    }

    public static boolean isPackageExist(String pckName) {
        try {
            PackageInfo pckInfo = MyApplication.getContextObject().getPackageManager()
                    .getPackageInfo(pckName, 0);
            if (pckInfo != null)
                return true;
        } catch (NameNotFoundException e) {
        }
        return false;
    }

    public static void hideAnimatedView(View view) {
        if (PRE_HC && view != null)
            view.setPadding(view.getWidth(), 0, 0, 0);
    }

    public static void hideSoftKeyboard(View view) {
        if (view == null)
            return;
        ((InputMethodManager) MyApplication.getContextObject().getSystemService(
                Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(
                view.getWindowToken(), 0);
    }

    public static boolean isLandscape() {
        boolean flag;
        if (MyApplication.getContextObject().getResources().getConfiguration().orientation == 2)
            flag = true;