-

·
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…
-

·
Set Activity Screen Brightness without Permission
I wanted to brighten the screen, but all articles said you needed Android permissions. Codswallop! Here’s how!
-

·
build.gradle.kts conversion for Android Studio Empty Activity
Quick blog posting showing you the build.gradle.kts version of the default build.gradle file from the “empty activity” Android Studio template. This post will go stale fast, get it whilst its hot. 🙂 The original templates come from the New Project, other templates are explained here: https://developer.android.com/studio/projects/templates Google has an explainer of converting build configuration scripts…
-

·
Android Job Interview – Take-Home Test Cheat Sheet
Learn the steps needed in a typical Android take home test. Giving you the tools and knowledge you need to ace this part of any Android interview process.
-

·
Proven Prepping for Easy Android Interviews in 2023
This post aims to demystify some of the steps in a typical Android interview process. We’ll discuss steps, strategies, targets and solutions. Getting you better prepared to get your next Android role. This blog is from personal experience, caveat up front that your experience could be completely different, but I’ve been through A LOT of…
-

·
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.
-

·
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.
-

·
Speed up your build: Non-transitive R files
Non-transitive R files became available to all modules in AGP 4.2. Non-transitive R files allow your builds to be incrementally faster and your AAB/APK’s smaller. This post will explain how to implement and build your app with non-transitive R files. Non-transitive what? In mathematics, non-transitivity is a property of binary relations that are not transitive relations.…
-

·
AppGallery Connect Remote Configuration: Spice up your app without the fuss
This blog will show you how to use Remote Config to toggle app features based on a remote setup. Using Huawei’s AppGallery Connect we can leverage user attributes and remote conditions to quickly and easily modify parameters from the cloud.
-

·
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…
-
·
Fix: Jetpack Compose observeAsState Type Error has no method
This quick blog post helps you solve the error “Type state has no method getValue” when first starting to observe state on your ViewModel.
-

·
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.
