java - F查找appium的Android APK的 Activity 名称

标签 java appium

我需要获取 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/

相关文章:

java - 从警报中设置 TextView 的值

java - 在 Spring 中使用 Mockito 模拟属性文件

ios - Appium 错误 : start point is not within the bounds of the screen

python - 如何使用Python代码比较Appium中的图片?

java - 如何通过 selenium、appium、java 和 android 以更快的方式多次点击元素

java - 需要获取多行字符串以显示在文本框中Java

java - 为什么 Spring MVC 4 提交按钮不触发 post 方法

java - 如何修复 Firebase 身份验证中的空指针异常?

java - 如何初始化驱动程序对象以便所有类都可以使用它

Android Appium Scroll UiAutomator ExpandableListView 这种组合会如何运作?