Running an application ¶
To run an application, there are 2 options:
Testing on a virtual robot¶
For further details, see: Robot emulator.
Running an application on a real robot¶
To run an application on a real robot, there are 3 steps:
Preparing a robot for connection¶
To be able to connect to a robot, check his Settings on his tablet:
Home > Settings .
- the Developer mode is activated. For further details, see: Enable developer options.
- the Developer options / Debugging / ADB is also activated.
Connecting to a real robot¶
Prerequisite: make sure your robot is configured. For further details, see: Preparing a robot for connection.
On Android studio:
The Robots Browser appears, displaying detected robots.
Select one of the robots in the list.
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
For further details, see: Robots Browser.
Click the Select button.
A security alert appears:
Enter the robot password and click the OK button.
The Robot Viewer appears.
For further details, see: Robot Viewer.
If the Connect to tablet alert appears:
Enter the IP address of the robot tablet.
How to find the IP address?
On the tablet of the robot, display the notifications (swipe down from the top of the screen) and look for the following logo:
Wait for the complete connection.
Once connected to a real robot, you should automatically be connected to his tablet via ADB.
If Android Studio displays a “Connection failed” alert.
Click the Help link and check the tips.
- Check the tablet IP address and then click the modify IP address link to enter it.
- Make sure ADB is enabled. For further guidance, see: Preparing a robot for connection.
- Check on the tablet for an “Allow ADB” pop-up to validate.
- Make sure another developer is not already connected to the robot.
Make sure Android Studio is fully connected: not only to the robot, but also to his tablet.
Otherwise, see: Connecting to a real robot.