在日志中打印当前的后退堆栈 [英] print the current back stack in the log

查看:95
本文介绍了在日志中打印当前的后退堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在Android应用程序中打印当前任务的当前后退堆栈?特别是,我想了解在调用活动的onDestroy()之后何时将活动从堆栈中弹出.

Is there a way to print the current back stack of the current task in an Android app? In particular, I want to understand when an activity is popped off the stack after its onDestroy() is called.

推荐答案

您可以为此使用adb:

You can use adb for this:

adb shell dumpsys activity

这篇关于在日志中打印当前的后退堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆