Running an application

On a virtual robot

Step Action

Click the emulator_btn Emulator button.

The Robot Emulator appears.

emulator

Make sure that the selected run configuration of your project is app, otherwise, select it.

run_configuration_toolbar

Click the run_btn Run button.

The Select Deployment Target windows appears.

../_images/run_target.png

Select the Emulator as deployment target.

The application starts on the virtual robot displayed on the Robot Emulator.

For further details, see: Robot emulator.

On a real robot

Step Action

Check the Settings of your robot:

On the tablet: Home > Settings settings_icon.

Make sure:

  • the developer mode is activated. For further details, see: Enable developer options.
  • the Developer options / Debugging / ADB is also activated.

On Android studio, click the connect_btn Connect button.

The Robots Browser appears, displaying detected robots.

../_images/robot_browser.png

Select a robot.

If the robot does not appear, you can also check then complete Use fix port and Use fixed IP/hostname fields. In this case, use 9559 as fixed port.

Click the Select button.

A security alert appears:

../_images/password_required.png

Enter the robot password and click the OK button.

The Robot Viewer appears.

../_images/robot_viewer.png

Once connected to a real robot, you are automatically connected to his tablet via ADB.

Make sure that the selected run configuration of your project is app, otherwise, select it.

run_configuration_toolbar

Click the run_btn Run button.

The Select Deployment Target windows appears and displays the Tablet.

../_images/run_target_real.png

Select the robot’s tablet as deployment target.

The application starts on the robot’s tablet.