Show all events happening in the phone. The command is very useful for debugging transitions between activities, background, Home button, launcher icon start, notification icon start, etc.

1
adb logcat -b events

Show current tasks and activities running on your connected device:

1
adb shell dumpsys activity