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" <[email protected]> To: "Android Developers" <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---

