0

We have an android app which is composed of two different apps. Launcher activity is present in 1 project which has a package name

in.foo.android.main.MainActivity

while app package which is shown in uiautomator view is something like

com.abc.android.debug

in desired capabilites I am setting following :

capabilities.setCapability(MobileCapabilityType.APP_PACKAGE ,"com.abc.android.debug");
capabilities.setCapability(MobileCapabilityType.APP_ACTIVITY,"in.foo.android.main.MainActivity");

So getting below error

com.abc.android.debug/in.foo.android.main.MainActivity is not a launchable activity

Here appium is adding package name by default before the main activity.

can someone provide some help here.

Al Imran
  • 876
  • 7
  • 27
Ankur08
  • 1
  • 1
  • 2

1 Answers1

0

First

  1. Go to CMD as admin type adb devices
  2. Make sure that your device already opened the apps that you want
  3. go to cmd and type adb shell dumpsys window | find "mCurrentFocus"

this the exp

Thats command will showing the current activity

Second

  1. Install the APK Info from playstore (idk if you try on the appstore)

https://play.google.com/store/apps/details?id=com.wt.apkinfo&hl=in&gl=US

  1. Open the APK Info
  2. Search your apps s name and click it
  3. You will see this screen appdetail
  4. Scroll down and check the activities activities
  5. You will see all of the activity on the apps existingactivity
flo
  • 1