Skip to content Skip to sidebar Skip to footer

How To Make Button Open

I have a problem, I need my 'Send' button to send the email to my button when the user clicks on it. I just want to get where, when users click send Button then the button will alr

Solution 1:

Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
            "mailto","email@email.com", null));
intent.putExtra(Intent.EXTRA_SUBJECT, subject);
intent.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(intent, "Choose an Email client :"));

USe thi. Change the values as per your need


Post a Comment for "How To Make Button Open"