Appium doesn't launch the application


I am facing a weird issue while automating Android through Appium.

Following is the the program sequence I am executing -

  • Installing APK through ADB command using runtime.
  • Launching the application.

These activity does nothing and gives me Activity can’t be started error.

After my tests fails, I immediately able to see the application installed.

Appium automatically installs and launches the apk for you unless you change the default capabilities. Are you taking the two steps you describe above after the appium client has started? As always, output from the appium server log makes this easier to debug.

Is there any specific reason to install the app through ADB while appium could do it for you without hassle?