title: Why my android app stops when i set the text value of a TextView
body: <p>I have two layouts. The first one:</p>
  
  <pre><code>&lt;LinearLayout       xmlns:android="http://schemas.android.com/apk/res/android"
                      android:orientation="horizontal"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"&gt;
                  &lt;EditText
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:id="@+id/edit_text_val"&gt;
                  &lt;/EditText&gt;
                  &lt;Button
                          android:id="@+id/continue"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_weight="1"
                          android:text="Continue"
                          android:onClick="newConfirm"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and the second one:</p>
  
  <pre><code>&lt;LinearLayout       xmlns:android="http://schemas.android.com/apk/res/android"
                      android:orientation="horizontal"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"&gt;
                  &lt;TextView
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:id="@+id/text_view_val"&gt;
                  &lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When I click the button of the first layout I go to the second layout and want to set as text value of the TextView
  the string entered in the EditText of the first layout. I do this in the newConfirm method:</p>
  
  <pre><code>public void newConfirm(View view){
          EditText et = (EditText)findViewById(R.id.edit_text_val);
          TextView tv = (TextView)findViewById(R.id.text_view_val);
          tv.setText(et.getText().toString());
      } 
  </code></pre>
  
  <p>But when I click the button my app stops working...
  <strong>Unfortunately MobileApp has stopped</strong></p>
  
  <p>Any idea??</p>