From 59ebf4292746057041b6b590818178e6c8d3ac4c Mon Sep 17 00:00:00 2001 From: Zhuang Ma Date: Sun, 11 Aug 2019 22:29:51 +0800 Subject: [PATCH] Fix command of show foreground activity fix #59 ref #64 --- README.en.md | 2 ++ README.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.en.md b/README.en.md index a0c5652..2c09178 100644 --- a/README.en.md +++ b/README.en.md @@ -656,6 +656,8 @@ mResumedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.androi Where `com.cyanogenmod.trebuchet / com.android.launcher3.Launcher` is currently in the foreground Activity. +*The command above may not valid in Windows, you can try `adb shell dumpsys activity activities | findstr mResumedActivity` or `adb shell "dumpsys activity activities | grep mResumedActivity"`. + ### View Running Services command: diff --git a/README.md b/README.md index f5e0e45..6faf546 100644 --- a/README.md +++ b/README.md @@ -667,6 +667,8 @@ mResumedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.androi 其中的 `com.cyanogenmod.trebuchet/com.android.launcher3.Launcher` 就是当前处于前台的 Activity。 +*在 Windows 下以上命令可能不可用,可以尝试 `adb shell dumpsys activity activities | findstr mResumedActivity` 或 `adb shell "dumpsys activity activities | grep mResumedActivity"`。* + ### 查看正在运行的 Services 命令: