How can I invoke installed app through appium script?

Hi All,

I am new comer in appium and have keen in learning this technology.So, I just starting from the very beginning, and please help me anyone that how may I invoke installed app through the appium script.

I tried the below code but still not able to see the desired output.

File appDir = new File(“C:\apk\Demo”);
File app = new File(appDir,“demo.apk”);
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(CapabilityType.VERSION, “5.0”);
// capabilities.setCapability(CapabilityType.PLATFORM, “WINDOW”);
capabilities.setCapability(“app”, app.getAbsolutePath());
capabilities.setCapability(“app-package”, “com.demo”);
capabilities.setCapability(“app-activity”, “com.demo.activities.HomeActivity”);
driver = new RemoteWebDriver(new URL(“”), capabilities);


What do the logs say? Please provide both the Java test’s log outputs (any Exceptions that may occur) and the Appium server’s logs.