You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access the activity service through the device class, for example:
varcurrentActivity=device.Activity.GetCurrent();
All available activity methods
/// <summary>/// Start an Activity specified by package and activity name/// </summary>/// <param name="packageName">Name of the package</param>/// <param name="activity">Name of the activity</param>/// <param name="forceStopActivity">Force stop the target app before starting the activity.</param>/// <param name="clearTasks">Clear activity stack</param>/// <exception cref="AdbException">Thrown if we can't find package/activity</exception>voidStart(stringpackageName,stringactivity,boolforceStopActivity,boolclearTasks);/// <summary>/// Get the current open activity/// </summary>/// <returns>Current open activity</returns>stringGetCurrent();/// <summary>/// Get a list with all installed packages on the android device/// </summary>/// <returns>A list with all installed packages</returns>IList<string>GetPackages();/// <summary>/// Check if a specific package is installed/// </summary>/// <param name="packageName">Name of the package</param>/// <returns>True if package are installed, otherwise false</returns>boolIsPackagedInstalled(stringpackageName);