摘要:
privateboolean isAppInstalled(String uri){PackageManager pm = getPackageManager();boolean installed =false;try{pm.getPackageInfo(uri,PackageManager.GET_ACTIVITIES);installed =true;}catch(PackageManager.NameNotFoundException e){installed =false;}return installed;}Just call the method by passing the p 阅读全文