Answer the question
In order to leave comments, you need to log in
How to speed up the opening of the application?
Hello! Recently updated dependencies, support libraries, added a couple of libraries. And subjectively, the application has become significantly longer to open. In fact, there is a simple activity with a form, nothing like that, no queries to the database or the Internet. Maybe someone knows how to make it all work faster? How do you know what time is spent on?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
The documentation has a whole section on how to speed up the loading of the application, and find the reasons for the slow start: https://developer.android.com/topic/performance/la...
1. The size of the DEX file is seriously affected. The more recent support, the larger this file will be. Use ProGuard to discard unused code.
2. Cut everything from Alication.onCreate()
. Get all the instances you need with Dagger2, delayed.
3. Use window:background
in app theme. Fill it with color or place a picture.
Perhaps you know, but still - as far as I know, if Instance Run is enabled in the studio (and this is enabled by default) and the application is built, then it will take longer to start than if Instance Run would be disabled.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question