Activity創(chuàng)建顯示關(guān)閉
ActivityTaskManager: START u0
wm_create_activity
Displayed
wm_finish_activity
system執(zhí)行resume的日志:wm_set_resumed_activity
app的activity執(zhí)行onResume的日志: wm_on_resume_called
Activity啟動(dòng)失敗
ActivityStarterImpl: Error: Activity not started, unable to resolve Intent
ANR
am_anr
ANR in
崩潰
在崩潰日志Fatal > Crash > AndroidRuntime > Exception > Error 逐個(gè)搜索
FATAL EXCEPTION
System.err
beginning of crash
am_crash
native crash 看tombstone
進(jìn)程被殺
Killing [進(jìn)程Pid] isolated not needed(拉起的主進(jìn)程被殺)
am_kill : [0,7355,com.android.xxx...]
am_proc_died: [0,7355,com.android.xxx...]
Zygote : Process 7355 exited due to signal 9 (Killed)
進(jìn)程啟動(dòng)
Zygote : Forked child process [PID]
ActivityManager: Start proc [PID]
焦點(diǎn)
Focus request日志代表請(qǐng)求焦點(diǎn),日志如下:
02-02 11:17:28 1326 1876 I input_focus: [Focus request a99a8b9 com.android.example/com.android.example.MainActivity,reason=UpdateInputWindows]
02-02 11:17:28 1326 1876 I input_focus: [Focus request a99a8b9 com.android.example/com.android.example.MainActivity,reason=UpdateInputWindows]
Focus entering日志代表當(dāng)前activity對(duì)應(yīng)的window獲取成功焦點(diǎn),日志如下:
02-02 11:17:28 1326 2101 I input_focus: [Focus entering a99a8b9 com.android.example/com.android.example.MainActivity (server),reason=Window became focusable. Previous reason: NOT_VISIBLE]
02-02 11:17:28 1326 2101 I input_focus: [Focus entering a99a8b9 com.android.example/com.android.example.MainActivity (server),reason=Window became focusable. Previous reason: NOT_VISIBLE]
Focus leaving 代表當(dāng)前activity失去焦點(diǎn),日志如下:
02-02 11:17:28 1326 2101 I input_focus: [Focus leaving a99a8b9 com.android.example/com.android.example.MainActivity (server),reason=NO_WINDOW]
02-02 11:17:28 1326 2101 I input_focus: [Focus leaving a99a8b9 com.android.example/com.android.example.MainActivity (server),reason=NO_WINDOW]
參考
https://blog.csdn.net/chi_wy/article/details/114639207
https://juejin.cn/post/7071188263968440356文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-657713.html
https://www.jianshu.com/p/ffdeec225c29文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-657713.html
到了這里,關(guān)于Android 常用Log日志的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!