A useful tool for Android Developers, which shows the package name and class name of current activity.
It's now open sourced at https://github.com/109021017/android-TopActivity.
Tips:
1. You can run "adb shell dumpsys window windows | grep -E 'mCurrentFocus' " to see the current activity.
2. You can track the activities by Logcat. Just add a Logcat Filter with Log Tag "ActivityManager" and Log Message "START.*".
3. Or you can run this shell script https://gist.github.com/109021017/43e7f5ad1361ad9caa3e