Activity创建显示关闭
ActivityTaskManager: START u0
wm_create_activity
Displayed
wm_finish_activity
system执行resume的日志:wm_set_resumed_activity
app的activity执行onResume的日志: wm_on_resume_called
Activity启动失败
ActivityStarterImpl: Error: Activity not started, unable to resolve Intent
ANR
am_anr
ANR in
崩溃
在崩溃日志Fatal > Crash > AndroidRuntime > Exception > Error 逐个搜索
FATAL EXCEPTION
System.err
beginning of crash
am_crash
native crash 看tombstone
进程被杀/退出
Killing [进程Pid] isolated not needed(拉起的主进程被杀)
am_kill : [0,7355,com.android.xxx...]
am_proc_died: [0,7355,com.android.xxx...]
Zygote : Process 7355 exited due to signal 9 (Killed)
Zygote : Process 10181 exited cleanly
进程启动
Zygote : Forked child process [PID]
ActivityManager: Start proc [PID]
焦点
Focus request日志代表请求焦点,日志如下:
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日志代表当前activity对应的window获取成功焦点,日志如下:
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 代表当前activity失去焦点,日志如下:
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.youkuaiyun.com/chi_wy/article/details/114639207