title: removeAllViews and setContentView not working
body: <p>I have a problem with removeAllViews and setContentView..... both are not working for me i don't know why.
  I have a function in a class that return a view and i want to add that view to the screen and that view will be change after every 5 second.....
  so after 5 second i call removeAllViews on the layout in which the view is added and then add it again.... but surprisingly the old view is still there and it add the new view at the end....</p>
  
  <p>Same problem with the setContentView i try this also but it also work same as main layout it also add the view at the end not replace the whole screen.......</p>
  
  <p>please help...... thanks in advance............</p>
  
  <pre><code>setContentView(logic.getView());
  </code></pre>
  
  <p>and</p>
  
  <pre><code>LinearLayout layout = blah blah blah;
  layout.removeAllViews();
  layout.addView(logic.getView(), layout parameters....);
  </code></pre>