Display progress bar onlistitemclick()
<p>Actually I know how to display progress bar using async activity using <code>onpreexecute()</code> method. But here my problem is when I click on list I am able to go other activity but it takes time to go other activity.This is because it takes data from some classes and use it to in next activity class, so till that time my process remain idle I want to show progress bar for that time of intervel on which it taking data and is idle so how to show progressbar. </p>

<p>If I use async task then what should be in <code>onpostexecute()</code> because all the content are position dependnt and take data according to position of list item click please tell me any solution. My code for onlistitemclick is below</p>

<pre><code>@Override
         protected void onListItemClick(ListView l, View v, int position, long thisID)
         {
              super.onListItemClick(l, v, position, thisID);

               Toast.makeText(this, "u clicked Id=" + keywordsearch.array_email[position] ,Toast.LENGTH_LONG).show();
               galleryname  =    keywordsearch.array_galleryname[position];
               address= keywordsearch.array_address[position];
               email= keywordsearch.array_email[position];
               web= keywordsearch.array_web[position];
               phone= keywordsearch.array_phone[position];
               lati= keywordsearch.array_lati[position];
               longi= keywordsearch.array_longi[position];
               filtersearchresultparsing.galleryurl  =    keywordsearch.array_imgurl[position];
               Log.i("image url........." ,  galleryname);
   Intent i = new Intent(keywordxmlparsing.this, detailviewshowingnowTab.class);
               startActivity(i);


}}
</code></pre>
