title: Displaying User Input after Button Press
body: <p>I'm trying to display user input after a 'submit' button has been pressed. I created the form and added code for basic validation (text, number, string length, etc.) after the submit button is pressed. This section works properly.</p>
  
  <p>I want the submit button to display the input in a new view if the fields are all valid. I also want to add a feature that allows the user to edit their information (under the displayed input). I'm not sure where to start with this, mainly how to create a new view from the onClick action and how to send the variables to that view. Do I need to create a new class and XML file for this? If so, what is the best way of doing this?</p>
  
  <p>Edit:</p>
  
  <pre><code>    public void sendFeedback(View button) {
      final EditText firstnameField = (EditText)this.findViewById(R.id.EditTextFirstName);
      String firstname = firstnameField.getText().toString();
      int fnlen=firstname.length();
      if (fnlen&lt;=0){
          firstnameField.setError("Enter your first name");
      }
  </code></pre>