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 : 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.csdn.net/chi_wy/article/details/114639207
https://juejin.cn/post/7071188263968440356文章来源:https://www.toymoban.com/news/detail-657713.html
https://www.jianshu.com/p/ffdeec225c29文章来源地址https://www.toymoban.com/news/detail-657713.html
到了这里,关于Android 常用Log日志的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!