How to fetch App Activity and App Package?

Follow the Steps mentioned below to find the App Activity and App Package for Android application.


Step 1. Open Command Prompt.

Step 2. Execute the following command and press the ENTER key.

adb shell

Step 3. Now run the following command.

dumpsys window windows | grep -E 'mCurrentFocus'