A solution to properly handle rest and sleep modes, using MediaPlayer and a dance animation as an example - The purpose of this article is to explain how to correctly interrupt and restart an activity according to the specific states of the robot: alive, rest and sleep modes. It is based on a simple activity that plays music through Android MediaPlayer and makes Pepper dance by executing a QiSDK animation.
Sending robot audio output to external speakers with bluetooth - How to activate bluetooth on SoftBank Robotics NAO6 robots is what we present here. Specifically, you will learn how to broadcast NAO's voice or sounds to an external Logitech Bluetooth adapter connected to a speaker. This tip is usable on NAO6.
Kotlin and the KDoc documentation - At SoftBank Robotics, we use Kotlin to develop the QiSDK API for Pepper robots and most libraries and applications. In this article, we will introduce Kotlin and the KDoc, explain why we made that choice and how to make a smooth transition from Java to Kotlin.
How to manually synchronize your code with Gradle and understand the Android Studio cache - This tip explains how to synchronize your project with Gradle when updating build.gradle files and provides insight on handling the cache when using Android Studio. There are multiple levels of cache. We will explain the difference between the cache behind the "Invalidate cache and restart" menu, the "Clean project" one and other gradle caches involved in building an Android project. This article is not specific to Pepper QiSDK and introduces good practices for using the IDE.
Refactoring your code to use AndroidX Jetpack made easy - Using AndroidX is highly recommended: Pepper applications and libraries developed at SoftBank Robotics use it, and Google announced it as the new standard. Here you will learn how to migrate a project to AndroidX using the "Refactor > Migrate to AndroidX" menu in Android Studio. In most cases, it will do the trick without any more hassle. Still, you should take the time to read the prerequisites and infos in this blog article, as following the recommended steps will make activating Jetpack and migrating from Support Library to AndroidX easier.
How to add a launcher shortcut on Gnome 3 to launch Android Studio (Ubuntu 16.04) - This tip explains how to add a shortcut to the app launcher to launch Android Studio on Ubuntu.