title: A few questions about ProgressDialog in Android
body: <p><br>
  1) FOA PD (ProgressDialog) can be created only from Activity, doesn't it? Please provide an useful example if it is really not.<br><br>
  2) If a PD should be created in separate thread could it be created and showed if it's thread doesn't do anything at all? I mean something like this (assuming mProgressDialog is a property of the class):</p>
  
  <pre><code>new Thread(){
        public void run(){
            mProgressDialog = ProgressDialog.show(appContext, 
                    appContext.getResources().getString(R.string.progress_wait), 
                    appContext.getResources().getString(R.string.progress_db_installing), 
                    true);
  
    }.start();
  </code></pre>
  
  <p>As I understand the thread dies immediately after executing run() cause there is nothing to do and so PD doesn't show. It should have some processing code or at least an empty cycle with some manageable condition<br><br>
  3) if PD should be created in the main thread should it be created only at the end of OnCreate() method or in the body of some method called/caught(by some Listener) started  in OnCreate() method?<br><br>
  4) PD by itself doesn't suspend any thread while displaying, does it? So the code continues executing after the show() method . I mean the show() by itself doesn't suspend/pause the thread cause I guessed it does.</p>