我需要获取 Android APK 的 Activity 名称。我已经尝试过 appium GUI 并使用了相同的方法,但在运行代码时出现错误“应用程序无法启动,因为 Activity 不正确”。
所以我想知道如何寻找正确的 Activity ,以便我也可以轻松地为其他应用程序编写脚本。 我使用的是appium服务器V-1.7和java客户端-V5.0</p>
最佳答案
我们必须使用android反编译器来实现它。
尝试下面的链接
http://www.javadecompilers.com/apk
遵循的步骤:
1. Choose correct .apk file from your system.
2. Upload and Decompile apk.
3. After sometime apk will be decompile and you will get source code of
it.
4. Refer AndroidMenifest.xml file and find launcher tag in menifest,
And mention activity which using this tag is the activity you want.
关于java - F查找appium的Android APK的 Activity 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48041048/