android - how to find the name of the main activity of an application?

前端 未结 5 1137
既然无缘
既然无缘 2020-12-16 19:50

For example, I want to start Gmail in code/command line, but I don\'t know its main activity name.

am start -n com.google.android.gm/.XXXXX

5条回答
  •  悲&欢浪女
    2020-12-16 20:19

    Step1: Start "adb logcat" in command prompt.

    Step2: Open the app (either in emulator or real device) enter image description here

提交回复
热议问题