1. adb shell dumpsys activity activities |grep "mResumedActivity=ActivityRecord"

  2. adb logcat |grep ActivityManager