how to check whether email client installed on device
Use this, works for me :
public static boolean isMailClientPresent(Context context){
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/html");
final PackageManager packageManager = context.getPackageManager();
List<ResolveInfo> list = packageManager.queryIntentActivities(intent, 0);
if(list.size() == 0)
return false;
else
return true;
}
For email client, specifically, you should use:
intent.setType("message/rfc822");
instead of:
intent.setType("text/html");