I used a bool, and it definitely works... but I'm thinking there's just a cleaner way of doing this involving how activities are started and called from the stack. I'll keep an eye out.
Thanks! On Jan 18, 2:06 pm, "hmmm" <akul...@mail.ru> wrote: > What if you pass some to that activity using Intent.putExtra() and then in > the activity depending on the data you will decide whether to show a > progress dialog or not? > Or, if you want that progress dialog only once for loading what if you put a > static field say private static boolean isLoaded and after the loading set > it to true and then check it. > > ----- Original Message ----- > From: "g1bb" <corymgibb...@gmail.com> > To: "Android Developers" <android-developers@googlegroups.com> > Sent: Sunday, January 18, 2009 8:32 PM > Subject: [android-developers] Launching Multiple Activities? > > > Hello, > > > I have an activity that links to other activities via buttons. When a > > user clicks these buttons, I launch other activities with startActivity > > (), which has been working fine. > > > My problem is, one of my activities displays a progressdialog when it > > is loading. I would like to only do this once per run (the main > > screen), and not have to go through the loading each time the user > > switches back to this activity. Is there a way to call this activity > > directly from the history stack? > > > Thanks in advance! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---