📌  相关文章
📜  减少应用程序启动时间 Android - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:12.238000             🧑  作者: Mango

代码示例1
depends on how you have organised your Home/Splash Activity and where you have defined the heavy tasks in the Activity lifecycle callbacks.

In general, test your app and see which methods take much time than others and start with optimizing them. Try do minimum(no) work at onCreate() and onStart(). Send time consuming work to back thread.

Further you can checkout Launch Fast section of this 9Part post by Chet Haase. https://medium.com/google-developers/developing-for-android-iii-2efc140167fd#.7fkyvlowf