What is the purpose of using Intent.createChooser() in StartActivity() while sending email in Android

AFAIK, if you use Intent.createChooser, there are three differences:

  1. You can specify the title of the chooser dialog to make it more clear.

  2. The system will always present the chooser dialog even if the user has chosen a default one.

  3. 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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)