I want to check whether an app is installed on the device or not. I am using code below :
PackageManager pm = context.getPackageManager(); List
just check using application id of particular app for example check
getPackageManager().getPackageInfo("com.facebook.katana", 0);
return true;
else false
check this answer it may helpful to you. How to check programmatically if an application is installed or not in Android?