process Dialog not Showing immediately in List View
<p>Hi I am new to Android and trying to put process dialog on List View like this way.</p>

<pre><code>    lv1.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView&lt;?&gt; a, View v,int position, long id) {
            Log.v("data1","Before Dialog");
            pd = ProgressDialog.show(DataDiaryDateAndTime.this.getParent(), "",
                    "Please Wait....", true, true);
            Log.v("data1","After Dialog");
            MyThreadNew myThread = new MyThreadNew(position);
            myThread.start();
        }
    });
</code></pre>

<p>but I found that the process dialog starting very late but both messages comes immediately
My Activity is child Activity of other Activity.</p>

<p>please give me appropriate solution
Thanks.  </p>
