Overview
The Radix Device Manager has the Remote Execute option, which consists of command line Android commands or scripts. There is also the Workflow option, which allows combining a few Remote Execute input events to automate more complex tasks. We will give a concrete example of creating such a workflow and executing it.
Table of Contents
As an example, we will put together a workflow that goes to a particular website by combining remote input events:
- Opens a browser on a remote device,
- Enters the selected URL in the address bar,
- Simulates an “Enter” click, to go to the desired website.
In our example, we chose to open the website ESPN (www.espn.com) by combining remote input events. We will do this in four steps:
- Step One Selecting a Device to which to send the Workflow
- Step Two Creating a New Workflow
- Step Three Create Remote Execute commands
- Step Four Running the Workflow command
Selecting a Device to which to send the Workflow
- In the Radix Device Manager, click the Devices icon to open the Devices Console.
- Click on the row of the device in the Device Console.
The Device Dashboard opens. - In the Device Dashboard, click on Repositories actions.
Creating a New Workflow
- In Repositories Actions, click on Workflow:
The Workflow window opens. - Click on Add New to create a new workflow. The New Workflow window opens:
- Supply a Workflow name and description. We will call it Open ESPN.
- Click on the Commands icon in the sidebar menu, to open the Commands window:
- In the Commands window, click on the Add Command button.
- In the grid of commands that opens, select the Remote Execute button. The Remote Execute command allows you to create command line commands or compose scripts.
The Remote Execute window opens.
Creating Remote Execute commands
- Click on Add New to create a new Remote Execute command.
- Assign a name to the Remote Execute command. Our first command will use keyevent 84, which opens a Google search bar.
- Enter the command and arguments as in the screenshot below:
- Click Confirm. This adds the “Open the Browser” command to the repository of Remote Execute commands.
- Click on the tile “Open the Browser” and click Add.
Our new workflow now contains this remote execute command. - Click Add Command and select Remote Execute.
- Click Add New in the Remote Execute window. The next command types the text of the ESPN URL (https://espn.com) in the browser’s address bar.
- Click Confirm. The repository of Remote Execute commands now contains the Open ESPN URL command.
- Click on the Open ESPN URL command and click Add.
This adds the command to the Workflow. - Click Add command, and repeat the process to add the third command. The third command (input keyevent 66) functions as clicking Enter, to search for the ESPN website:
- When we click Confirm and then add Works like Enter command, this final command will be added to the Workflow.
- Click Confirm. Our new workflow (Open ESPN) has been added to the repository of workflows.
Executing the Workflow command
- In the Workflow repository, click on the Open ESPN workflow and click Apply.
- You will get a confirmation that the workflow was sent to the remote device.
And the ESPN website’s homepage appears on the remote device. Success!