It's this: http://developer.android.com/reference/android/os/AsyncTask.html
If you just search this group you will find lots of discussion of it. On Tue, Jun 30, 2009 at 3:46 PM, Georgy <[email protected]> wrote: > > I will try looking more into it. Should I have the AsyncTask source > code implemented in my app? it doesn't seem to recognize it. > > Is there a tutorial? > > On Jun 30, 4:50 pm, Dianne Hackborn <[email protected]> wrote: > > Use AsyncTask. There has been lots of discussion of it on this group, > and I > > think it is pretty well documented in the SDK. > > > > > > > > On Tue, Jun 30, 2009 at 1:46 PM, Georgy <[email protected]> wrote: > > > > > I am trying, I always get errors, here's my code: > > > > > @Override > > > public void onCreate(Bundle icicle) { > > > > > super.onCreate(icicle); > > > setContentView(R.layout.main); > > > > > final Dbadapter db = new Dbadapter(this); // This creates an instance > > > of the database in this class > > > db.open(); > > > boolean cx = db.doesTblExist(); > > > > > if (cx != true) > > > { > > > ....... // Long work // > > > } > > > > > else { // do nothing app goes on } > > > > > how can I use threads to create a loading progress dialog without > > > clicks or any user event, just from the initiation of the app? > > > > > thanks > > > > > On Jun 30, 1:23 pm, Dianne Hackborn <[email protected]> wrote: > > > > 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. > > > > -- > > 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. > > > -- 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 -~----------~----~----~----~------~----~------~--~---

