-

·
Pair Programming With Your AI Agent
This post explains how to treat a session with a local AI agent as a pair programming session, and how the four classic pairing styles map onto working with one. I’ll use Antigravity CLI for the concrete examples, though nothing here is specific to it. Swap in whichever agent sits in your terminal. The idea…
-

·
Android Dynamic Animated SVGs (with Lottie Dynamic Properties)
Learn how to have runtime control of all parts of an animation or image, the color, opacity, scale, rotation .. any property within your SVG animation using Lottie Dynamic Properties. This tutorial is going to explain Lottie Dynamic Properties. Dynamic Properties are a way of controlling at runtime, the different parts of your animation. You…
-

·
Setting JDK level in Android Gradle builds
The correct, complete, 2024, settings to configure the Java version in Gradle for Android.
-

·
Dependency Injection in Legacy Code
This post explains how you can inject dependencies into Android legacy singletons, or any classes that aren’t conforming to your current Android architecture, using Dagger & Hilt. I’ll cut straight to the chase, if you have a reference to Context, (which you usually always do in spaghetti legacy code) then you can use your normal…
-

·
Applying a 3rd Party Gradle Plugin as a Composite Plugin
This post shows you how to wrap a 3rd party Gradle plugin in your own plugin, so that you can interactive with it programmatically.
-

·
When is a Type not a Type? Kotlin in the IDE
This article explains the ‘show type hints’ feature of IntelliJ. To get to see those sweet variable types you desire but not change any of the code conventions in your place of work.
-
·
Hiding Text in Kotlin – How many ways?
At some point you may want to show that you know a text value, but not show the value itself. For example, when you have sensitive data stored like a password, you may want to show a representation of the length of that password but not the characters themselves. How would you do this in…
-
·
[TUT] Speech to Text from a File with Google Cloud Speech API
This blog will explain how to use Google Cloud’s Speech API to convert an audio recording of someone speaking to text in Android. We’ll use Kotlin and the Google Speech client for best results. Google offers a speech recognition API, that is able to convert your spoken language into a textual representation. The API has…
-
·
[TUT] Android Things – APA102 7 LED Array, SPI on the Rainbow Hat
This blog post will explain how you can use the SPI protocol to shine an LED rainbow from your AndroidThings application. We’ll discuss the Raspberry Pi Rainbow hat and its actuators, in this case the seven rgb pixels which we’ll use to make a lovely kids style rainbow colored pattern. Hardware Prerequisite: We have the…
-
·
[TUT] Android Things – Alphanumeric Segment Display, I2C on the Rainbow Hat
This post will explain how you can use the I2C protocol to output from your AndroidThings application. We’ll discuss the Raspberry Pi Rainbow hat and its actuators, in this case the 4-digit Alphanumeric Character Display which we’ll use to count down from 1000. Hardware Prerequisite: We have the Rainbow Hat connected to the top of…
-
·
[TUT] Android Things – Temperature Sensor, I2C on the Rainbow Hat
This post will explain how to use the I2C protocol to get input into your Android Things application. We’ll discuss the Raspberry Pi Rainbow Hat temperature sensor which we’ll use to measure air temperature surrounding your pi. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry pi. Software Prerequisite: An…
-
·
[TUT] Android Things – Piezzo Transducer, PWM on the Rainbow Hat
This blog will show you how to play the Pokemon theme tune using the PWM protocol through the peripheral buzzer. We’ll discuss the Raspberry Pi Rainbow hat and its Piezo Transducer which is a buzzer that we can make play sounds, notes or noises. Hardware Prerequisite: We have the Rainbow Hat connected to the top…
-
·
Threading best practices : 3 ways on Android Things
Working with Android Things means connecting to peripheral sensors & actuators to communicate sending or receiving commands and data. As with all Android development, you should be evaluating the impact of this and consider offloading the effort onto another thread wherever possible. So what is best practice for threading on Android Things? Like with all…
