android 检测该包名所对应的应用是否存在
/** * 检测该包名所对应的应用是否存在 * @param packageName * @return */ public boolean checkPackage(String packageName) { if (packageName == null || "".equals(packageName)) return false; try { getPackageManager().getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES); return true; } catch (NameNotFoundException e) { return false; } }
补充:移动开发 , Android ,