You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.addEmail("elmehdi.sakout@gmail.com")
I added a email like this. When user clicks that, then other messasing applications are also showed. If the user choose Whatapp, then this button never work. I just want only email apps are asked to user.
So can you please change the code?
BEFORE:
public AboutPage addEmail(String email, String title) {
Element emailElement = new Element();
emailElement.setTitle(title);
emailElement.setIconDrawable(R.drawable.about_icon_email);
emailElement.setIconTint(R.color.about_item_icon_color);
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("message/rfc822");
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
emailElement.setIntent(intent);
addItem(emailElement);
return this;
}
AFTER:
public AboutPage addEmail(String email, String title) {
Element emailElement = new Element();
emailElement.setTitle(title);
emailElement.setIconDrawable(R.drawable.about_icon_email);
emailElement.setIconTint(R.color.about_item_icon_color);
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:"));
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
emailElement.setIntent(intent);
addItem(emailElement);
return this;
}
The text was updated successfully, but these errors were encountered:
.addEmail("elmehdi.sakout@gmail.com")
I added a email like this. When user clicks that, then other messasing applications are also showed. If the user choose Whatapp, then this button never work. I just want only email apps are asked to user.
So can you please change the code?
BEFORE:
AFTER:
The text was updated successfully, but these errors were encountered: