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 install a language package and get speech recognition in new languages - As international talking robots, Pepper and NAO can access many languages for speech recognition, and its management is quite easy. This quick how-to explains how to set up new languages installing a language pack in a few simple steps.
How to reduce Android APK size to optimize deployment on Pepper QiSDK robot - As a developer, you may want to accelerate the build and the deployment of an application on Pepper from Android Studio. Here is a useful optimization trick to optimize the build and deploy time, to reduce the size of the application package (APK) and therefore improve installation and deployment time.
How to use the contextual shortcut Alt+Enter or Option+Enter - Among many keyboard shortcuts, Android Studio provides a very useful context aware shortcut to manage intention actions: Alt+Enter (non Mac world) or Option+Enter (Mac world)