 | HostRunMobileApp Method (String, String) |
Starts an app on a mobile device. This operation only works for devices that were configured trough
the Ranorex user interface. This operation also works when the app is running on the device already.
In that case the running app will be closed and started again to reset it into the initial
state.
Only apps that were instrumented by the Ranorex system can be started by Ranorex.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic void RunMobileApp(
string deviceDisplayName,
string appName
)
Public Sub RunMobileApp (
deviceDisplayName As String,
appName As String
)
Parameters
- deviceDisplayName
- Type: SystemString
The name you configured for your device. If no device with that name exists or is not connected
(that means Ranorex isn't able to communicate with the corresponding device)
the operation will fail.
- appName
- Type: SystemString
The app that shall be started. This has to be the unique application identifier. E.g. for android devices
such an app identifier looks like 'ranorex.android.DemoGui'.
Exceptions| Exception | Condition |
|---|
| ArgumentException |
If deviceDisplayName or appName is null or empty.
|
See Also