Вопрос

I would like to send a email through default email client,without chooser dialog for email clients been popped up in the application.Kindly help me with a snippet or example on this regard.Thank you.

Это было полезно?

Решение

Generally, if you want to launch a specific application, you use an explicit Intent, instead of an implicit one.

However, there is no such thing as a default email client in Android. Many manufacturers, eg Samsung install their own one, and some people use that, some use Gmail.

Android already has a way to let the user set the default via the Chooser dialog, so I would recommend you to rely on that.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top