title: You must call removeView() on the child's parent first with AlertView
body: <p>I have a alert dialog and i will get text with TextView but When I call it a second time, the app crashes with error:</p>
  
  <pre class="lang-none prettyprint-override"><code>04-15 19:37:48.433: E/AndroidRuntime(907): java.lang.IllegalStateException: 
      The specified child already has a parent. You must call removeView() on 
      the child's parent first.
  </code></pre>
  
  <p>My Java source:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          final RelativeLayout rLayout = (RelativeLayout) findViewById(R.id.relativeLayout);
          Button btn1 = (Button) findViewById(R.id.button1);
          final AlertDialog.Builder build = new AlertDialog.Builder(MainActivity.this);
          build.setTitle("Ders Adı Giriniz");
          final EditText dersAdiGir = new  EditText(MainActivity.this);
          build.setView(dersAdiGir);
          final LinearLayout layoutDers = (LinearLayout) findViewById(R.id.layoutDers);
  
          build.setPositiveButton("Tamam", new DialogInterface.OnClickListener() {
  
              @Override
              public void onClick(DialogInterface dialog, int which) {
  
                  Editable girilenDers = dersAdiGir.getText();
                  TextView tv1 = new TextView(MainActivity.this);
                  tv1.setText(girilenDers);
                  layoutDers.addView(tv1);
                  dialog.dismiss();
                  build.create();
  
              }
          });
  
          btn1.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  AlertDialog alert = build.create();
                  alert.show();
              }
          });
  
  
  
  
      }
  }
  </code></pre>
  
  <p>Please help me, thanks all</p>