process Dialog not Showing immediately in List View
<p>Hi I am new in android and I am trying to put process Dialog on click event of list view, No doubt its working but I found that process Dialog shows very late, I need that, It should be show immediately after I click,  my peace of code is here. please give me appropriate solution for this.  Thanks !</p>

<pre><code>    lv1.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView&lt;?&gt; a, View v,
                final int position, long id) {
            pd = ProgressDialog.show(v.getRootView().getContext(), "",
                    "Please Wait....", true, true);
            MyThreadNew myThread = new MyThreadNew(position);
        //  myThread.setPriority(Thread.MIN_PRIORITY);
            myThread.start();
        }
    });
</code></pre>
