View Source Improve this doc

startActivity

Start an arbitrary Android activity during a session.

Usage

1
browser.startActivity(appPackage,appActivity[,appWaitPackage][,appWaitActivity]);

Parameters

Param Type Details
appPackage String name of app
appActivity String name of activity
appWaitPackage
optional
String name of app to wait for
appWaitActivity
optional
String name of activity to wait for

Example

startActivity.js
1
2
3
4
browser.startActivity({
appPackage: 'io.appium.android.apis',
appActivity: '.view.DragAndDropDemo'
});

Support

Support for android