Tutorials

Functional Error Handling in Kotlin: runCatching and the Result Type

The Problem With Try-Catch Everywhere Exception handling in Kotlin (and Java before it) has always had a composability problem. Once you introduce a try-catch block, you break the expression-oriented flow of your code. You can’t easily chain operations, return from them in one line, or pass the “success or failure” result to another function without […]

, , , , ,
AI assistant concept with code on screen
Tutorials

Claude Code for Android Development: Setup and CLAUDE.md That Actually Helps

Why Claude Code Is Worth Setting Up Properly for Android If you’ve tried using Claude Code for Android development without any configuration, you’ve probably found it helpful but inconsistent. It might suggest Retrofit when your project uses Ktor, generate Java when you want Kotlin, or miss your architectural conventions entirely. The difference between a generic

, , , , ,
Tutorials

Stop Using System.currentTimeMillis() for Benchmarking: Kotlin’s measureTimedValue and Duration API

The Old Way: Manual Time Measurement If you’ve ever benchmarked a function in Kotlin or Android, you’ve probably written something like this: val start = System.currentTimeMillis() val result = doExpensiveWork() val elapsed = System.currentTimeMillis() – start Log.d(“Perf”, “doExpensiveWork took ${elapsed}ms, result=$result”) It works, but it’s noisy. You need three lines just to time one call,

, , , , ,
Tutorials

Claude Code for Android Development: Setup, Best Practices & Gotchas

AI-assisted development has moved well beyond autocomplete. Claude Code — Anthropic’s agentic coding tool — can read your project, reason about your architecture, write Kotlin, generate tests, and even help you debug Gradle. But like any powerful tool, it rewards those who know how to use it well. This guide walks you through everything you

, , , , , , ,
Articles

Using Claude to Write Better Play Store Descriptions (With Prompt Templates)

Writing a Play Store listing that converts is harder than it looks. The character limits are tight, keywords matter, and you have about three seconds to grab attention. Here’s how I use Claude to make it easier — including the exact prompts I use for Seasons Live Wallpaper. Keyword Research Prompt “I have an Android

, , , ,
Tutorials

Animating the Seasons: Building a Particle System with Android Canvas

One of the most satisfying things to code is a particle system. Snowflakes, falling leaves, fireflies — simple physics, beautiful results. Here’s how Seasons Live Wallpaper handles its snow, and how you can build something similar. The Particle Data Class data class Snowflake( var x: Float, var y: Float, val radius: Float, // visual size

, , , , ,
Articles

Getting Application Context in Kotlin with Hilt – The Modern Way

Learn how to get the Application Context anywhere in your Android Kotlin project using Hilt dependency injection. The modern, leak-safe replacement for the old Java singleton pattern.

Articles, Solutions, Tutorials

SignIn With Google (Not Working?)

Have you migrated or want to migrate to the SignIn with Google that uses CredentialsManager and it’s not workin? Well, in my experience, when I tried recently to integrate this in a new project I faced 2 major issues that consumed some of my time. First Issue The first one was the lack of some

Privacy Policy

Privacy Policy for Screen Cracker Live Wallpaper

Privacy Policy for Screen Cracker Live Wallpaper Last Updated: 17.03.2024 Funcode, located at Str. Eugen Ionesco 67, Cluj-Napoca, Romania, is committed to protecting your privacy. This Privacy Policy explains how your personal information is collected, used, and disclosed by Funcode in connection with the use of the Screen Cracker Live Wallpaper app. 1. Personal Data

,
Solutions, Tutorials

Xamarin Forms: Add Entry Bottom Line

On Android an Entry or EditText as it is called in Android Native, has by default a bottom border line when you tap inside the field. On iOS this line doesn’t exist, so if you want to have the same design on both platforms, you will have to create a custom render for iOS and

Kotlin collections and mutability
Articles, Tutorials

Kotlin Mutable and Immutable Collections

In this article I would like to emphasise over a few options that we have when working with data structure and more precisely with collections in a mutable and immutable fashion. So let’s start with a few of them and see their mutability state. But first, what makes a list mutable or immutable? Immutable Collections

, , , ,
Articles, Solutions, Tools

Android Studio / IntelliJ IDEA productivity guide

Android Studio and productivity One interesting feature that Android Studio and IntelliJ IDEA have is the Productivity Guide panel. It helps you see how much of the productivity tools that are available and you are using. You can see here a quick screenshot with the one I have, on one of the computers I am

, ,
Solutions, Tutorials

Logs – how to filter them in Android Studio

I’ve stumbled across a lot of logs noise in Android Studio throughout the time and it can be a pain when you need to debug a crash or just read some important logs of your app when your device/emulator prints lots of logs. Those logs are helpful for some cases but might not be for

, ,
Articles, Solutions

Load instrumentation test local files

Sometimes you might need to add setup files (json/xml/.properties/etc.) to your instrumentation tests (androidTest) and load them in your tests. You usually do that when loading for example some mocked data set or some fixture. In testing, fixtures often take the form of JSON or yaml files that mimic the responses from real API calls.

, , ,
Scroll to Top