Progress Dialog dont move
<p>Hi I try show progress dialog when mymethod is running with code that below. When thread starts the progress dialog stop I dismiss it at the end of the method that called in thread. How can I solve this?</p>

<pre><code>&gt;mDialog = new ProgressDialog(DealActivity.this);


    mDialog.setMessage("Loading...");
        mDialog.setCancelable(false);
        mDialog.show();
        mDialog.setProgress(0);



        new Thread() {

            public void run() {
                mymethod();
            }

        }.start();
</code></pre>
