When ever we need to send an email in Android we will invoke registered email application using Intent.ACTION_SEND like below
Intent i = new Intent(Intent.AC
AFAIK, if you use Intent.createChooser
, there are three differences:
You can specify the title of the chooser dialog to make it more clear.
The system will always present the chooser dialog even if the user has chosen a default one.
If your intent created by Intent.createChooser
doesn't match any activity, the system will still present a dialog with the specified title and an error message No application can perform this action
. Or for the normal intent, you may get an Android runtime error with: Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent