Android ProgressDialog not working.when creating a new activity
<p>i've searched most of the "progressDialog not working" threads here but none of the answers seem to work for me.</p>

<p>I'm trying to create a new activity that calls a method which executes on a different thread (takes up to 30-5o seconds).</p>

<pre><code>public class FLActivity extends ListActivity {

    private ProgressDialog mProgressDialog;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mProgressDialog = ProgressDialog.show(FLActivity.this, "", 
                                              "Loading...");

        OtherClass.LongDurationMethodWhichStartsAWorkedThread();

        mProgressDiagog.dismiss();
    }
}
</code></pre>

<p>The long duration method is:</p>

<pre><code>// in some other class
public static LongDurationMethodWhichStartsAWorkedThread() {
    Runnable r = new FFThread();
    Thread thread = new Thread(r);

    thread.start();
    try {
        thread.join();
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch  (Exception e) {
        e.printStackTrace();
    }
}
</code></pre>

<p>I've used thread.join() to wait for the worker thread to execute and then continue.</p>

<p>However, no message is displayed.</p>

<p>Can anyone see the problem?</p>
