From a7daf061bd44b91f38e6708fa96e3d023f989ef0 Mon Sep 17 00:00:00 2001 From: Wang DiYuan Date: Sun, 11 Aug 2019 22:20:18 +0800 Subject: [PATCH] fix show foreground Activity failed (#64) --- README.en.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.en.md b/README.en.md index 4e9552d..a0c5652 100644 --- a/README.en.md +++ b/README.en.md @@ -645,13 +645,13 @@ adb shell pm clear com.qihoo360.mobilesafe command: ```sh -adb shell dumpsys activity activities | grep mFocusedActivity +adb shell dumpsys activity activities | grep mResumedActivity ``` Example output: ```sh -mFocusedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t42} +mResumedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t42} ``` Where `com.cyanogenmod.trebuchet / com.android.launcher3.Launcher` is currently in the foreground Activity. diff --git a/README.md b/README.md index 82152d6..f5e0e45 100644 --- a/README.md +++ b/README.md @@ -656,13 +656,13 @@ adb shell pm clear com.qihoo360.mobilesafe 命令: ```sh -adb shell dumpsys activity activities | grep mFocusedActivity +adb shell dumpsys activity activities | grep mResumedActivity ``` 输出示例: ```sh -mFocusedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t42} +mResumedActivity: ActivityRecord{8079d7e u0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher t42} ``` 其中的 `com.cyanogenmod.trebuchet/com.android.launcher3.Launcher` 就是当前处于前台的 Activity。