It takes about 7 seconds timed on a Milestone for the first activity to show up. I am not looking for a real progress bar, just a textview saying "Activity Loading...." would be fine.
On Apr 28, 7:30 pm, Brion Emde <[email protected]> wrote: > If you want a ProgressBar to work, you have to be doing the work in a > separate thread, as in AsyncTask. Since the ProgressBar runs in the UI > thread, if you block that, you won't get the effect that you are > looking for. > > Is loading your tabs really that slow? > > On Apr 28, 3:59 pm, Alain <[email protected]> wrote: > > > > > I would like to show a progress dialog or bar in the main activity of > > a tabhost based app, while the tabs are loaded. > > > I have tried: > > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > // > > requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); > > //requestWindowFeature(Window.FEATURE_PROGRESS); > > //setProgressBarVisibility(true); > > > setContentView(R.layout.main); > > myProgressDialog = > > ProgressDialog.show( Activity.this, > > "Please wait...", "Loading Tabs...", true); > > doCalc(); > > myProgressDialog.dismiss(); > > setTabs(); > > } //END onCreate > > > In all cases, the initial screen stays blank until the first tab > > activity gets loaded. > > > Adding a text view would also work, but the textview then shows up on > > each the views of the tab activities. > > > Is there a way of doing this? > > > Thanks > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

