Reputation: 31676
What is the recommended best practice for minimizing the startup time of an android application?
Upvotes: 5
Views: 6824
Reputation: 11522
Start by understanding what makes it take so long to start up; then work to minimize that time.
That may sound flippant, but it's not. There's no one magic bullet for improving program performance. Database optimizations, threading, and other techniques may help, but no one could make a sound recommendation without knowing what makes it take a long time in your particular program.
In the case of Android apps, there are tools such as Traceview that can help you determine what your program is doing while it starts up.
Upvotes: 12
Reputation: 1006644
Get long-running work off the main application thread, using AsyncTask
or your own background threads.
Use Traceview to figure out what is taking your time.
Upvotes: 5