trying to get string into intent
<p>Ok I am trying to take a string and put it into the intent section so i can get the app to send an email. I cannot for the life of me figure out how to do this. NOTE: I am new to java/android programming. I know this will pull up an option for the user to choose what they want to send it with. I would really like to have to app send the email and give them a confirmation, but do not know if that is possible.</p>

<p>Here is my main.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/welcome" /&gt;

    &lt;EditText
        android:id="@+id/EditTextName"
        android:layout_height="wrap_content"
        android:hint="@string/name"
        android:inputType="textPersonName"
        android:layout_width="fill_parent"&gt;
    &lt;/EditText&gt;

    &lt;EditText
        android:id="@+id/EditTextEmail"
        android:layout_height="wrap_content"
        android:hint="@string/email"
        android:inputType="textEmailAddress"
        android:layout_width="fill_parent"&gt;
    &lt;/EditText&gt;

    &lt;Spinner
        android:id="@+id/SpinnerStatus"
        android:layout_height="wrap_content"
        android:prompt="@string/status"
        android:layout_width="fill_parent"
        android:entries="@array/statuslist"&gt;
    &lt;/Spinner&gt;

    &lt;EditText  
        android:id="@+id/EditTextChangeBody"  
        android:layout_height="wrap_content"  
        android:hint="@string/changebody"  
        android:inputType="textMultiLine"  
        android:lines="5"  
        android:layout_width="fill_parent"&gt;  
    &lt;/EditText&gt;

    &lt;Button
        android:id="@+id/ButtonSendChange"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:onClick="sendChange"
        android:text="@string/changebutton"&gt;
    &lt;/Button&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Here is my MadisonStudios.java</p>

<pre><code>package com.madisonstudios.supportapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Spinner;

public class MadisonStudios extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    public void sendChange(View button) {  
        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();  

        final EditText feedbackField = (EditText) findViewById(R.id.EditTextChangeBody);  
        String changes = feedbackField.getText().toString();

        final Spinner feedbackSpinner = (Spinner) findViewById(R.id.SpinnerStatus);  
        String status = feedbackSpinner.getSelectedItem().toString();

        Intent it = new Intent(Intent.ACTION_SEND);
        String[] tos = {getString(R.string.email)};
        it.putExtra(Intent.EXTRA_EMAIL, tos);
        it.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.emailSubject));
        it.setType("text/plain");
        startActivity(it);
    } 
}
</code></pre>
