dynamic add a linear layout to another
<p>whats wrong with this code? it gave me this error:</p>

<blockquote>
  <p>The specified child already has a parent. You must call removeView() on the child's parent first.</p>
</blockquote>

<pre><code>    final LinearLayout ll = new LinearLayout(this);
    ll.setOrientation(LinearLayout.VERTICAL);

    final LinearLayout ll2 = new LinearLayout(this);
    ll2.setOrientation(LinearLayout.HORIZONTAL);

        for(int i = 0; i &lt; 20; i++) {
             CheckBox cb = new CheckBox(getApplicationContext());
             TextView txt = new TextView(getApplicationContext());
                txt.setText("test!");
                ll2.addView(cb);
                ll2.addView(txt);
                ll.addView(ll2); //ERROR HERE
            }
        sc.addView(ll);
</code></pre>
