In order to use adb to control android application, we should find apk package name and launcher activity name to start it. In this tutorial, we will introduce you how to do.
Preliminary
You should use usb to connect your mobile phone and computer.
Run an apk in our mobile phone
In order to use adb to find the package name and launcher activity name of an apk application, you should run it in your mobile phone.
Then you enter adb command below to find the answer.
adb shell dumpsys activity activities | find "mFocusedActivity"
An example is: