0

I am try to using the code below to get the current screen, but I cannot get what is the current screen of my phone.

adb dumpsys window windows | findstr mFocusedApp

or

adb dumpsys window windows | findstr mCurrentFocus  

Anyone can exist me how to get the current screen?

Jay Jay
  • 33
  • 6

1 Answers1

1

I would like to share my final findings on this question. Sincerely hoping this can help those who faced the same problem in the future.

If you want to look through all the activities of your device , you may try the code below:

adb shell dumpsys activity

Here is the code that might help you to find the current screen activity, the main subject is mLastResumedActivity

adb shell dumpsys activity | findstr mLastResumedActivity
Jay Jay
  • 33
  • 6