It likely is using the old one, even if you think it isn't. Probably what happens is the activity process has been killed. When it is rebuilt (your home button), the lifecycle calls onCreate() which I'll guess is where your long running code is.
So, the solution would likely be to add the results of your db work to the Bundle in onFreeze(), then access it (the icicle parameter) when onCreate is called. If the icicle is not null, you can do your processing, else load from the db. On Apr 14, 11:44 pm, hal <[EMAIL PROTECTED]> wrote: > I have a home button in my menu that takes me back to the first page. > However, the first page also loads a ton of junk from a db when it is > created, which is frighteningly slow. Is there some way to check if it > is already created and resume that old one instead of creating a new > Activity? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

