-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019-06-27:谈谈你是如何优化App启动过程的? #85
Comments
IntentService |
怎么没人回答,我简单说几个思路抛砖引玉
|
1.在Application里面不要做太多耗时操作 |
可以设置启动时背景透明 <style name="SplashTheme" parent="Theme.AppCompat.Light.DarkActionBar"> true true </style> |
1、数据准备。如果有首页必须准备好的数据,可以分步骤加载,先加载紧急的数据 |
1.把application oncreate 中要执行的方法 分为同步和异步,尽量去延迟执行 或者使用空闲线程
4.在attachedbaseContext中 新起一个进程 去加载 mutildex 可以加速App启动页的打开(可能在启动页中会等待,但是加速了从launcher到启动页的速度) |
不要在application里面执行耗时操作 不要在启动的activity里面做耗时操作 |
|
这是来自QQ邮箱的假期自动回复邮件。
|
No description provided.
The text was updated successfully, but these errors were encountered: