[android-developers] Re: Performance: pre-instantiate activities on app launch? Good practice or not?

2009-04-01 Thread matthias
Thanks for your reply Dianne. As to profiling, I looked at traceview, but seems to be a bit overly simplistic to actually profile a whole app. What I understand from the documentation, what it actually does is measuring the time it takes for a single method to complete. That's not a terribly

[android-developers] Re: Performance: pre-instantiate activities on app launch? Good practice or not?

2009-03-30 Thread Dianne Hackborn
I would really discourage this. We try very hard to keep app startup time fast so the user doesn't need to sit there waiting for it. If you really have lots of expensive thing that you can't avoid doing later, I would recommend doing that in the background after you have your app UI up rather