title: Long operations on Activity's onCreate()
body: <p>I have an Activity that retrieves information from a remote server and displays it in a TableLayout.
  The function that retrieves the information from the server has its own timeout, and exception is thrown when the timeout gets exceeded.</p>
  
  <p>Now, when the activity is loaded, I want the function to be fired, and a progressDialog to be shown while the function works, and to be hided if the function is done working, or if a timeout exception was thrown.</p>
  
  <p>The problem: I've put the code that do all the functionality described above in the onCreate() function. Nothing is shown on the emulator screen, since the onCreate() function hasn't finished running...</p>
  
  <p>I've also tried to put the code in the onStart() function... same unwanted results...</p>
  
  <p>I'm trying to avoid using of threads, because the functionality needs many variables that the thread will not has access to them...</p>
  
  <p>How can i implement the wanted behavior?? </p>
  
  <p>Thanks.</p>