• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to save EditText and Email.

Pooveshin

Newbie
Hi All

I am currently developing an android application and am in need of some help, I need have created a page with multiple EditText fields for user answers to appear, along with this is a save button to export those values to a text file. Can anyone help with a code that would instead with the click of a button be able to pass those values into an email to be emailed to the user?

Any help would be much appreciated.
 
Ah right. If you post your code up we can advise further.
This is my code for the email:
public void email(View button){
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
startActivity(emailIntent);
startActivity(Intent.createChooser(emailIntent, "Send your email in:"));

String aEmailList[] = { "property@venns.co.za"};

emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Property Query: ");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Full Name:");

emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Query and Telephone Number: ");

startActivity(emailIntent);
}
When the email button is pressed the app must pull the figures from the EditText field into the email.
 
Back
Top Bottom