I need to check whether email client is installed on a device or not. I have used the following code but it does not work for me.
public boolean isIntentAvailable() { final PackageManager packageManager = getApplicationContext().getPackageManager(); final Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_EMAIL, "vin@gmail.com"); List<ResolveInfo> list = packageManager.queryIntentActivities(intent, PackageManager.GET_META_DATA); return list.size() > 0; }