1.首先在cmd窗口输入:adb shell 2 接着输入如下命令: dumpsys window w | grep \\/ | grep name= 上述这个两个命令就可以获得手机当前界面的activity的名称。