Aspect Android buried statistics activity page usage duration onResume onPause, and save the duration

Aspect Android buried statistics activity page usage duration onResume onPause, and save the duration mark: 1.build.gradle under the project dependencies { classpath ‘com.android.tools.build:gradle:3.5.4’ classpath ‘com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10’ } 2. build.gradle in the app folder apply plugin: ‘com.hujiang.android-aspectjx’ // Configure AspectJX aspectjx { exclude ‘androidx.core’,’androidx.appcompat’ } dependencies { ……. //Introduce AspectJX dependency implementation ‘org.aspectj:aspectjrt: 1.9.8’ … } import […]

Application display process analysis from setContentView to onResume

Previously, the process of Acitivity from startup to display was generally analyzed (https://blog.csdn.net/qq_36063677/article/details/125638137, https://blog.csdn.net/qq_36063677/article/details/129369308) , I found that many details were not noticed, and the more important parts in the follow-up selection process were focused on analysis. In the last article, I analyzed the process of an app from zygote to onCreate (https://blog.csdn.net/qq_36063677/article/details/129756237). The indispensable […]