Android ProgressBar when activity is starting
<p>I want to create loading progress bar when my activity is starting. I have an activity with ViewFlipper which contains <code>OpenStreetMap</code> and <code>GridView</code>  (I'm switching this two views using <code>ViewVlipper</code> ). I want to display loading progress bar just like Foursquare does. I have some SQL queries which are executing for 0.1 - 0.3s but I want my app to be really responsive ;-). I know  that I should use <code>AsyncTask</code> and PostExecute etc. But... how can I obtain similar effect to Foursquare app? </p>

<p>What should I move to the postExecute method? Adding adapter with items which were queried from database to the GridView and adding pins to the map? Any ideas how should  it should be done?</p>

<p><img src="http://i.stack.imgur.com/ip1Ce.png" alt="Foursquare loading"></p>
