Automated testing often encountered this problem, on this topic, the method is numerous, our purpose is to find a relatively simple and reliable: method one: First into the cmd window, adb shell: Cd/data/datals can see the package name, the shortcomings are obvious, Must root mobile First method two: first into the cmd window: adb shell ps|findstr/i "keyword" to search which not all, this does not need root cell phone, ah, this still live method three: On the phone started the program, USB connection computer, And then start android-sdk/tools/monitor.bat,device inside you can see the package name. The above three ways to see the package name is still alive, it may be a bit of guessing, but all can achieve the goal, but the task of the Start window (activity) is what, these methods are not seen. Get, not suspense, directly launched my proposal method: Method Four: First run a program on the mobile phone, enter the first interface on the line, do not go to a lot of operation, USB connection computer, into the cmd window run: adb shell "Dumpsysusagestats" |findstr/i "Keyword" This also does not use root cell phone, originally this Dumpsys usagestats is used to record which activity times and time of the program opened the information, here can be used to directly see your program to open what activity. You can try to execute the following command under cmd: adb shell "AM start-n com.tencent.mm/com.tencent.mm.ui.launcherui" phone qqadb shell "am start-n Com.tencent.mobileqq/com.tencent.mobileqq.activity.splashactivity "Micro bo adb shell" am start-n com.sina.weibo/ Com.sina.weibo.SplashActivity "QQ space adb shell" AM start-n com.qzone/com.tencent.sc.activity.splashactivity " However, if you can directly see the program in the project Androidmanifest.xml or can directly ask the development, then this article you do not have to read. done!
Reference to:
Http://www.tuicool.com/articles/UbI7fq3
Teach you how to find the package name of Android app and start activity