// app install check
private boolean appInstalledOrNot(String uri) {
PackageManager pm = _context.getPackageManager();
boolean app_installed = false;
try {
pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);
app_installed = true;
}
catch (PackageManager.NameNotFoundException e) {
app_installed = false;
}
return app_installed ;
}
댓글
댓글 쓰기