Jacek KwiecieĊ„ Jacek KwiecieĊ„ - 29 days ago 4
Android Question

Opening email client via Intent (but not to send a message)

Is there a way to programically open email client, without a need to forcing message send? I just want the app to let user open his email client for email checking purposes :)

Intent intent = new Intent(Intent.ACTION_SEND);
startActivity(Intent.createChooser(intent, ""));

This code works but it forces user to send a new message.


I think you should replace Intent.ACTION_SEND to Intent.ACTION_VIEW,
i am sure this will work as this will prompt with list of application which support MIME type "message/rfc822" so it will include your default email client in your device other than gmail app.

How about this code:

final Intent emailLauncher = new Intent(Intent.ACTION_VIEW);
}catch(ActivityNotFoundException e){