You need to do your work in a separate thread, so the main thread is free to
run and display/update the dialog.

On Tue, Jun 30, 2009 at 5:21 AM, Georgy <[email protected]> wrote:

>
> Yeah but it wouldn't wait for the application to load (either before
> or after). I want something to get triggered WHILE the application is
> loading. A simple loading dialog... (progress dialog)
>
> On Jun 23, 1:16 am, Brian Cloutier <[email protected]>
> wrote:
> > It's been a while since I last made an Android Application, so take this
> > with a grain of salt, but can't you just fire an intent to start the
> dialog
> > from onStart()?
> >
> > On Mon, Jun 22, 2009 at 9:06 PM, Georgy <[email protected]> wrote:
> >
> > > Hello,
> >
> > > I am trying to initiate a progress bar when my application starts. The
> > > way my application works is that it collects info from the db that
> > > takes around 5 to 6 secs where the screen is completely black.  I am
> > > trying to initiate a progress dialog that gets triggered WITHOUT a
> > > button click or any other UI interaction but just when the user starts
> > > the application.
> >
> > > All the previous posts handled something with handlers and UI
> > > interactions.
> >
> > > any luck?
> >
> > > thanks
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to