M
M
mitaichik2016-09-19 11:13:30
Android
mitaichik, 2016-09-19 11:13:30

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

3 answer(s)
A
Alexey Ershov, 2016-09-29
@alaershov

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...

P
Pavel Slyusar, 2016-09-30
@slesar

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:backgroundin app theme. Fill it with color or place a picture.

K
Kostya Bakay, 2016-10-01
@kostyabakay

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 question

Ask a Question

731 491 924 answers to any question