@@ -0,0 +1,886 @@
+package example.andrewli.com.util.utils;%0A%0Aimport android.app.Activity;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.pm.PackageManager;%0A%0A/**%0A * Created by Andrew Li on 2016-07-06.%0A */%0Apublic class PackageUtil %7B%0A%0A    public static boolean isAppInstalled(Context context, String uri) %7B%0A        PackageManager pm = context.getPackageManager();%0A        boolean installed = false;%0A        try %7B%0A            pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);%0A            installed = true;%0A        %7D catch (PackageManager.NameNotFoundException e) %7B%0A            installed = false;%0A        %7D%0A        return installed;%0A    %7D%0A%0A    public static void  startApp(Activity activity, String packageName) %7B%0A        Intent LaunchIntent= activity.getPackageManager().getLaunchIntentForPackage(packageName);%0A        activity.startActivity(LaunchIntent);%0A    %7D%0A%7D%0A

add package util