运行一下命令:
adb shell dumpsys window | findstr mCurrentFocus
获取的内容如:com.example.test/com.example.base.MainActivity
1.查看包名:
其中:com.example.test即为该应用的包名
2.查看activity名:
其中:com.example.base.MainActivity 即为该应用当前显示的Activity 名
运行一下命令:
adb shell dumpsys window | findstr mCurrentFocus
获取的内容如:com.example.test/com.example.base.MainActivity
1.查看包名:
其中:com.example.test即为该应用的包名
2.查看activity名:
其中:com.example.base.MainActivity 即为该应用当前显示的Activity 名