on Which Activity background I should display progress dialog when user can navigate to different activity based on his data in server
<p>In my app I am creating Log in mechanism.In this when user enter username and password then in background data is fetch.On the basis on this fetched data user can navigate to different activity.Like if user is registered,if user not registered,if username and password is incorrect.</p>

<p>I have implememnt all this functionality.But here I am displaying progress dialog on the login Activity and then I navigate the user based on condition satisfied.But as the data is large hence activity layout taking more time to load and I have already dismiss the dialog in onPostMethod of AsyncTask.</p>

<p>So for 2-3 sec login activity is standstill without dialog(as it is already dismiss)
Hence where should I display the log in progress dialog.</p>

<p>Please tell me if any other detail is needed.</p>
