Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top