Skip to content

Blundell

Android Developer Tutorials

  • Beginner
  • Intermediate
  • Advanced
  • Reference
  • X-Post

Tag: kotlin

Choosing Wisely: for vs. forEach in Kotlin (A Thinking Dev’s Perspective)

In Reference By blundell On 2025-04-042025-04-04
Choosing Wisely: for vs. forEach in Kotlin (A Thinking Dev’s Perspective)

The forEach loop, are you using it without thinking? In Kotlin, empirically forEach is often the go-to loop, it’s pragmatically close at reach in the IDE auto-complete, but is it always the right choice? This…

Read more of Choosing Wisely: for vs. forEach in Kotlin (A Thinking Dev’s Perspective) →

Tagged androiddev, kotlin

build.gradle.kts conversion for Android Studio Empty Activity

In Reference By blundell On 2023-07-052023-07-05
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…

Read more of build.gradle.kts conversion for Android Studio Empty Activity →

Tagged android, androiddev, gradle, groovy, kotlin

When is a Type not a Type? Kotlin in the IDE

In Intermediate, Reference By blundell On 2020-11-172020-11-17
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.

Tagged android studio, androiddev, intellij, kotlin

Hiding Text in Kotlin – How many ways?

In Beginner, Intermediate By blundell On 2020-05-292020-05-30

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…

Read more of Hiding Text in Kotlin – How many ways? →

Tagged kotlin, password, performance

Kotlin Anti-Patterns – Also this is Null

In X-Post By blundell On 2019-02-142023-07-14
Kotlin Anti-Patterns – Also this is Null

Kotlin is a young language, and with that comes many untrodden paths and unknown gotchas. Let’s explore one of these anti-patterns, for the sake of the article I’ve called it “Also this is null”.

Tagged clean code, kotlin

[TUT] Speech to Text from a File with Google Cloud Speech API

In Intermediate By blundell On 2019-01-202019-01-22

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…

Read more of [TUT] Speech to Text from a File with Google Cloud Speech API →

Tagged google cloud speech, kotlin, tts, voice recognition

[TUT] Kotlin Extension Functions by Example

In Uncategorized By blundell On 2019-01-202019-01-20

Kotlin Extension functions allow you to add behaviour (think methods/functions) to any other type on the platform or in your codebase. The idea being to allow for greater flexibility and less boiler plate code. Let’s…

Read more of [TUT] Kotlin Extension Functions by Example →

Tagged clean code, kotlin

Posts pagination

Page 1 Page 2 Next page→
© Copyright Blundell. All rights reserved.