-

·
Zero to AI: An Android Developer’s Vital Local Setup
Forget just installing Android Studio and calling it a day. To operate at scale, you need a local environment that augments your engineering intuition with LLM-powered efficiency. Here is your Day 1 guide to setting up your machine for success.
-

·
Make a monorepo for your Android projects
This post describes how you can share code between your side projects without code duplication, remote hosting or versioning.
-

·
To dip or not to dp, that is the compose question
I know what you are thinking, why wasn’t this feature shipped with the compose 1.0, a travesty! Well don’t worry because now it’s here, by un-popular demand. No longer do you have to pine for the good old days, no longer do you have to think “I don’t like change”. Now, you can once again…
-

·
Using AdMob banner Ads in a Compose Layout
This is a real quick post to give you some pointers of how to use Google AdMob banner ads in an Android Jetpack Compose view layout. Right off the bat I want to say two things: 1- The AdMob team hasn’t got their library up to date (in terms of supporting compose), so it’s always…
-
·
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] How to use another power supply with your IoT device
When creating IoT systems, you’ll often want to use devices that run off another voltage of power supply than the normal 3.3v or 5v that your Raspberry Pi or other development board can give out. In this instance you need to use a relay. This post will walk through the use relay circuit boards and…
-
·
[TUT] Android Things – Using the ADS1015 analog to digital converter driver library
This post is going to explain how to use the ADS1015 Analog to Digital converter with Android Things. The board can convert analog sensor signals to digital input for the android things board, as well as acting as a programmable gain amplifier up to 16x. It has 12-bit precision at 3300 samples/second over I2C. What…
-
·
[TUT] Android Things – Capacitive Touch Buttons, GPIO on the Rainbow Hat
This blog will show you how to use the capacitive touch buttons of the Rainbow hat peripheral. In learning about the capacitive buttons we will use the GPIO protocol which can come in handy for numerous other sensors and peripherals. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry pi.…
-
·
[TUT] Android Things – LEDs, GPIO on the Rainbow Hat
This blog will show you how to use the LEDs of the Rainbow hat peripheral. In learning about how to make the LEDs blink, we will use the GPIO protocol which can come in handy for numerous other sensors and peripherals. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry…
-
·
[TUT] Your First Android Things Application
This blog is going to show you how to write your first Android Things application. We’ll discuss the hardware details you need to know to get started and then dive into the code of the android app. Prerequisite, I assume you have a Raspberry Pi (or other AndroidThings compatible board) and you have flashed it…
-
·
How to use an extra GPIO pin on Raspberry Pi Rainbow Hat
This is an Android Things quick fix explanation of using an extra GPIO pin on the Rainbow Hat for the Raspberry Pi. I couldn’t find this solution written in any documentation. So here I am to share it with you. When you use the Rainbow Hat it takes all the pins of the Raspberry Pi.…
-
·
Use the latest version of any library with Android Studio & Gradle
Isn’t it annoying whenever you want to add a new dependency to your project you have to know the exact version to add, not any more! This ‘hack’ makes use of the Gradle + syntax that allows you to not specify a version of the application. However using + syntax in your code is dangerous…
-
·
[TUT] Android Gradle App with Espresso Instrumentation tests
This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs Espresso Instrumentation tests on Android classes. This follows on from my tutorials about Robolectric JUnit tests & JVM JUnit tests, you can have Espresso tests without Robolectric or JVM tests, but the idea is they all…