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 […]
Tag: onresume
Android-Why can’t get the width and height of View in onResume
Foreword There is a classic question, can we get the width and height of View in Activity’s onCreate? What about onResume? For this kind of stereotyped questions, as long as you read it, you can easily get the answer: No. Follow up with a follow-up question, why can View.post get the width and height of […]
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 […]