title: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first
body: <p>This is my code:</p>
  
  <pre><code>Frame.gameController.test();
  setContentView(Frame.world.getScreen());
  Frame.world.setRunning(true);
  </code></pre>
  
  <p>On the second line I am getting the following error:</p>
  
  <pre><code>ERROR/AndroidRuntime(15229): Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
  </code></pre>
  
  <p>Can anyone help me solve it? Previously it was working just fine, the problem starts when I take it in another activity.</p>
  
  <p>I'm using android 2.2.</p>