Tag: kotlin
Mocking Android resources with Mockito and Kotlin
I bumped into an issue that was a little harder than I expected to solve, so this is the documentation. Requirement: Load a JSON file from the res/raw resource directory.…
Unit testing asynchronous Android network libraries
I'm writing a network library for Android at the moment, and specifically looking at unit tests. In my last article, I looking at mocking the Android context and other Android…
Two tips for unit testing Android libraries
I'm busy writing a networking library for one of my Android apps. The question today is "how do I properly test the library?" There are a few problem areas, and I'll cover two of…
Build a better RecyclerView Adapter
Many of my Android apps end up including listst, which are implemented via a RecyclerView. More importantly, I know all the items in the list ahead of time. Every single blog and…
Validating permissions on Android with Kotlin
I'm continuing my educational coding exercise, developing a new photo sharing app. Recently, I completed my user authentication and registration process and I'm now quite happy…
Using Azure App Configuration for Remote Config with Android
I've been playing with a new app recently. I decided I needed some support from the cloud around feature flags (turning on and off features for specific people so I can test…
Authentication with AWS Amplify and Android: Fraud Protection and Analytics
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: Integrating Biometrics
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: Integrating TOTP
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: 3rd Party OIDC Providers
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: Google Login
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Learn to build mobile and web apps with AWS Amplify and Serverless Framework
There has always been a bit of a problem between deploying your backend and then integrating that same backend with your front end code. The front end needs to know where the back…
Authentication with AWS Amplify and Android: Facebook Login
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: Customizing the UI
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Authentication with AWS Amplify and Android: The Basics
This will be an in-depth series on authentication with [AWS Amplify]. Here are the topics I am going to cover, and I will update each blog with the links as I complete the…
Let your analytics drive engagement: Endpoint profiles with AWS Amplify and Android
In my last article, I showed the current best way of integrating analytics into your Android app using Kotlin. The events are only half the story for engagement. You need to be…
Integrate Analytics into your Android applications with AWS Amplify
I’ve become a big fan of Kotlin development for my Android apps. I also think that analytics should be integrated into every single app I write. I’ve covered integrating Amazon…
Converting types with Room and Kotlin
I’ve been working on a personal project, trying to get to grips with the various Android Architecture Components and Kotlin. One of the things I came up with was the requirement…
Implement Search-on-type in Android with RxJava
I’m working on a new sample which, as is typical, communicates with a backend service for data through a serverless API. In this particular example, it’s a search capability that…
Unit Testing in Android Studio with Kotlin
I made myself a promise a couple of months ago. My next app would be fully unit tested for the non-UI components and fully instrument-tested for the UI components. That’s a tall…
Easy EditText content validation with Kotlin
One of the things that I always deal with in my apps is the need to validate the input fields of a form. I can easily do this with this sample fragment of code (for example, for a…
Using dependency injection with Kotlin
In a recent post, I described how I can do app analytics by using the AWS Mobile SDK and an AWS Mobile Hub project. This is a great way to get usage analytics for your app, but it…
Lessons in Kotlin: Toolbar Icons and Reflection
There are many tutorials online on how to produce an Android app bar with an options menu — so much so that it can be boiled down to a few steps, and I’ll reproduce them here:…
Lessons in Kotlin Threading: An Animated Splash Screen
I find quite a lot of Android apps have splash screens. Some splash screens are for showing off the logo; others for hiding the extensive data load times. Whatever the reason,…
Why I'm refactoring to Kotlin
One of the things that is really cool about software development is that we are continually learning and adjusting. I spent a day recently learning Kotlin. I was so impressed with…