Android 常用Log日志

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

https://juejin.cn/post/7071188263968440356

https://www.jianshu.com/p/ffdeec225c29

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值