adb shell dumpsys activity top 命令详解

查看当前栈顶的 Activity

命令语法

adb shell dumpsys activity top

查看当前栈顶的 Activity

示例

$ adb shell "dumpsys activity top | grep ACTIVITY"

adb shell dumpsys activity top 用法说明

adb shell dumpsys activity top 是「日志与调试」分类下的常用命令,作用是:查看当前栈顶的 Activity。

典型用法如下:adb shell "dumpsys activity top | grep ACTIVITY"。你可以复制到终端直接运行,或查看下方同组的相关命令。

常见问题解答

adb shell dumpsys activity top 是什么?
adb shell dumpsys activity top 用于查看当前栈顶的 Activity,属于「日志与调试」相关命令。
adb shell dumpsys activity top 怎么用?
在终端执行 adb shell "dumpsys activity top | grep ACTIVITY" 即可,具体参数请按实际环境调整。
还有哪些相关命令?
「日志与调试」分类下还有 17 条相关命令,见下方「相关命令」。