When my Application starts, It does a lot of scanning; traversing through the root folder to find some particular folders and then it scans for video files. The problem is that I get a blank screen for approximately 4 to 5 seconds at the start of the application. I wanted to display progress bar but it seems that the application doesn’t wait for the progress bar to appear; rather it continues going into the time-consuming traversing loops and after that it displays the progress bar.. Can someone give an example or a suggestion.. I have an idea that AsynTask may help here but I am looking for a certain example..
Thanks all.
and use this in main ::