title: Android Activity takes too long to show content
body: <p>My Activity in <code>onCreate()</code> performs long computations that take some time.</p>
  
  <p>In the same <code>onCreate()</code> I call <code>setContentView()</code> to set the appearance of the activity.</p>
  
  <p>The point is that, since it takes a while to performs the above mentioned computations the screen of the Activity loads only after long time.</p>
  
  <p>Please, any suggestion on how to avoid this?</p>
  
  <p>I have tried to call <code>setContentView()</code> in <code>onCreate()</code> and start the computations in <code>onResume()</code>, but again the Activity screen is loaded only at the end. </p>