title: setRetainInstance not retaining the instance
body: <p>I'm trying to use setRetainInstance() but it seems not working for me! =(.
  I simplified the problem to the easiest version:</p>
  
  <p>I have a fragment with a TextView and a Button. </p>
  
  <p>The initial text of the TextView is "I'm waiting" when the button is pressed the text changes to "Hello!"</p>
  
  <p>That is my code:</p>
  
  <p><strong>The fragment:</strong></p>
  
  <pre><code>public class SayHelloFragment extends Fragment {
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.say_hello_layout, container);
          final TextView text = (TextView) view.findViewById(R.id.textView1);
          view.findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  text.setText("Hello!");
  
              }
          });
          return view;
      }
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          setRetainInstance(true);
      }
  
  }
  </code></pre>
  
  <p><strong>The Activity:</strong></p>
  
  <pre><code>public class MainActivity extends FragmentActivity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
  }
  </code></pre>
  
  <p><strong>The activity's layout:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/say_hello_fragment"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      class="com.example.retaintext.SayHelloFragment" /&gt;
  </code></pre>
  
  <p><strong>The Fragment's layout:</strong></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="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="I&amp;apos;m Waiting"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Button" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But when I play it, press the button and change the device's orientation the text becomes reset.</p>
  
  <p>What am I missing? How can I solve it? Thanks!</p>