how to get android.app.activity code example Example: how to get app package and app activity in android adb shell dumpsys window windows | grep -E 'mCurrentFocus'