Please Help! I'm kinda new to android but I am trying to create an app with a simple form that consists of a name field an email field and a send button. When the button is clicked, I need it to send their name and email address to my email address. Is this possible? I'm not trying to have them open up an email client on the device but just to be able to click the button once send their name and email to my email kinda like website forms.
Here is my java code (Sorry if its kinda hard to read)
package com.mail;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class Mail extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
public void sendFeedback(View button) {
// Do click handling here
final EditText nameField = (EditText) findViewById(R.id.EditTextName);
String name = nameField.getText().toString();
final EditText emailField = (EditText) findViewById(R.id.EditTextEmail);
String email = emailField.getText().toString();
}
}