Tag: kotlin

Comparing The Kotlin Suspend And RunBlocking Functions

Comparing the Kotlin suspend and runBlocking functions

Dev

Explore multi-threading in Kotlin through the use of coroutines, especially the suspend and runBlocking functions.

Ivan Garza
Oct 27, 2022 ⋅ 7 min read
Kotlin Queue Guide Android

Kotlin queue guide for Android

Dev

Explore the Kotlin queue, a collection interface that is used to store and remove data following the FIFO concept.

Peter Aideloje
Oct 25, 2022 ⋅ 7 min read
Using Flutter's MethodChannel to invoke Kotlin code in Android

Using Flutter’s MethodChannel to invoke Kotlin code for Android

Dev

Learn how to call Kotlin code from the Dart side via the Flutter platform channels’ MethodChannel class and how to perform event-driven Flutter-Native communications via EventChannel.

Shalitha Suranga
Oct 20, 2022 ⋅ 15 min read
Moving away from Kotlin's AsyncTask: Alternative solutions

Moving away from Kotlin’s AsyncTask: Alternative solutions

Dev

Read about alternatives to the now-deprecated AsyncTask in Kotlin, and learn how to move your resource-intensive tasks off the main thread.

Emmanuel Enya
Oct 6, 2022 ⋅ 5 min read
Android Logo With Arrows Pointing Back

WebView and Android back button navigation

Dev

Let’s explore some solutions to common problems that Android developers often encounter when using WebView, such as back button navigation.

Paulo Pereira
Oct 6, 2022 ⋅ 5 min read
Kotlin When Vs. Swift Switch

Comparing control flow statements in Kotlin and Swift

Dev

Control flow statements like Kotlin’s when and Swift’s switch statements are used to break up typical top-to-bottom flows of code execution.

Ivan Garza
Sep 29, 2022 ⋅ 5 min read
Exploring Advanced Uses Of Conditions And Loops In Kotlin

Exploring advanced uses of conditions and loops in Kotlin

Dev

Let’s take a look at conditions and loops in Kotlin, including how to use the Kotlin for loop and why ternary operators are not needed.

Kingsley Ubah
Sep 26, 2022 ⋅ 8 min read
Kotlin Activity State Fragment Lifecycle

Activity state and fragment lifecycle in Android apps with Kotlin

Dev

In Android development, the activity state and fragment lifecycle play a crucial role, influencing implementation decisions and the final output that is experienced by end users.

Peter Aideloje
Aug 31, 2022 ⋅ 5 min read
Create Custom Layouts For Android Apps With Jetpack Compose

Create custom layouts for Android apps with Jetpack Compose

Dev

Learn how to use Jetpack Compose to create custom Android app layouts based on your project’s requirements and recommended dev practices.

Chizoba Ogbonna
Aug 18, 2022 ⋅ 6 min read
Java Kotlin Android Development

Kotlin vs. Java for Android development

Dev

Compare the community, performance, speed, and stability of Kotlin and Java to determine which programming language is the best fit for your project.

Levi Vaguez
Aug 17, 2022 ⋅ 6 min read
Initializing Lazy And Lateinit Variables In Kotlin

Initializing lazy and lateinit variables in Kotlin

Dev

The lateinit initialization can save you from repetitive null checks that you might need when initializing properties as nullable types.

Rahul Chhodde
Aug 15, 2022 ⋅ 7 min read
Unit testing in Kotlin projects with Mockk and Mockito

Unit testing in Kotlin projects with Mockk vs. Mockito

Dev

This post covers how to perform simple unit tests in Kotlin projects using both Mockk and Mockito, as well as covers their differences.

Emmanuel Enya
Jul 28, 2022 ⋅ 5 min read