MobileCapabilityType APP_PACKAGE and APP_ACTIVITY in JAVA CLIENT VERSION 5.0.0 /5.0.3 VERSION

Hi, I am using JAVA CLIENT VERSION 5.0.3 but I trying to get MobileCapabilityType APP_PACKAGE and APP_ACTIVITY but I did find please help me out how I can launch App in Android device which already installed.

IF there any other method available then please let me know.

@kunall17 try it as string

“appPackage” “package of your app”

“appActivity” "activity of your app "

it will work for sure

DesiredCapabilities cap=new DesiredCapabilities();
cap.setCapability(“appPackage”,"package of your app ");
cap.setCapability(“appActivity”, “activity of your app”);

1 Like

Thank you so much its working