Adding Text From Edit Text Field Into An Email
I have an app and want to have a contact us for where the user inputs their name, address, phone number, and a comment section. Then they will click on compose mail button and it
Solution 1:
You can put all data inside email.putExtra(android.content.Intent.EXTRA_TEXT, "Sent from the Lads to Leaders/Leaderettes Android App");
First Get all EditText by ID here in oncreate Like
EditTextname= (EditText) findViewById(R.id.editext1);
EditTextaddress= (EditText) findViewById(R.id.editext2);
EditTextphone= (EditText) findViewById(R.id.editext3);
Then put all data
email.putExtra(android.content.Intent.EXTRA_TEXT,
"name:"+name.getText().toString()+"address:"+address.getText().toString()+"phone:
"+phone.getText().toString());
Enjoy :)
Post a Comment for "Adding Text From Edit Text Field Into An Email"