-
·
[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…
-
·
[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…
-
·
Android Architecture Components meets AndroidThings
Android Architecture Components are a new set of opinionated guidelines written up by Google on how to structure your code when writing an Android application. From the official documentation: The most important thing you should focus on is the separation of concerns in your app. It is a common mistake to write all your code…
-
·
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…
-
·
[TUT] Android Things – Writing a PIR Motion Sensor Driver
This blog will show you how to write an Android Things driver for the HC-SR501 PIR Sensor Module. This module can detect movement and uses a GPIO pin on your Android Things board for communication. What are we going to do: – Understand how HC-SR501 PIR Sensor Module works – Write a MotionSensor interface for…
-
·
Battling the 65k method limit
### Battling the 65k method limit 2016 is the year of the method limit. Many hardened Android developer will already know this and will have been fighting the holy war for many years, but this year is when the pain, misery and violence spreads to the masses. Dalvik error: “`bash Unable to execute dex: method…
-
·
Inspecting databases with Stetho
Have you ever been writing a database backed Android application and you quickly want to look at some of your SQL stored data? Maybe wondering why your query isn’t working or seeing if the database persistence is actually working? You could use an emulator or rooted device and the DDMS tools. This way you can…
-
·
Q&A with Android Developer Paul Blundell
In this post, I interviewed developer Paul Blundell to gain some insight on his experience with Android and discuss how he manages his apps. Gregory: How did you get started with Android. Why did you go with this platform rather than Ios or even hybrid? Paul: The concept of hybrid did not exist when I…
-
·
The Making of an Android Auto Demo Unit
Android Auto is a protocol developed by Google to allow mobile devices to be controlled by a car head unit. This means you can use Google Maps navigation, play music, get notifications of important happenings, all from your car dashboard. The official page has more [android.com/auto](https://www.android.com/auto/). Here we are going to show you how we…
-
·
Hexawhat Architecture?
Have you ever heard of hexagonal architecture? In my experience, the question quite divides people. It’s either yes! wow! I love it, I’m doing it / experimenting with it right now, OR no what? what even is that, is it Android based. hexa – six something? Here I’m going to try to explain hexagonal architecture…
-
·
Taming your Github notification emails
If you use GitHub at your company and have more than one project on the go at once, you might start to notice you get a lot, A LOT of emails. You get email notifications of pull requests being created, people commenting, people mentioning your name, people merging or closing pull requests… you get the…