<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[KotlinKenya &amp; Android254 - Medium]]></title>
        <description><![CDATA[KotlinKenya &amp; Android254 is a community-driven publication sharing practical Kotlin, Android, KMP, and mobile engineering knowledge from developers across Kenya and Africa. We write from real-world experience, learning together and building in the open. - Medium]]></description>
        <link>https://medium.com/kotlinkenya-android254?source=rss----b47574fd6849---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>KotlinKenya &amp;amp; Android254 - Medium</title>
            <link>https://medium.com/kotlinkenya-android254?source=rss----b47574fd6849---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:36:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/kotlinkenya-android254" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Part 2: Running Your First Model with LiteRT in Kotlin]]></title>
            <link>https://medium.com/kotlinkenya-android254/part-2-running-your-first-model-with-litert-in-kotlin-ca84f8d4d8c9?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/ca84f8d4d8c9</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[litert]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[ml-on-device]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jeremy Gitau]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 19:00:10 GMT</pubDate>
            <atom:updated>2026-10-23T19:00:09.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BYroZ-XMfqvfMyxR_JsBg.png" /></figure><p>A few weeks ago we kicked off this series with <a href="https://medium.com/kotlinkenya-android254/part-1-on-device-ml-with-kotlin-2c45f3ec3d5c">Part 1</a>, where we met LiteRT, the runtime formerly known as TensorFlow Lite. If you haven’t read it yet, go ahead. I’ll wait.</p><p>Back? Great, quick recap: LiteRT runs machine learning models right on the phone or any other device. No server, no internet, no waiting on a round trip. Your data stays on the device, and answers come back in milliseconds.</p><p>It is fun to talk about it, but let’s get to the even more fun part. Let’s make a phone actually <em>SEE!</em></p><p>Before writing any Kotlin, we need a model. In the <a href="https://github.com/Jeremy-Gitau/on-device-ml-kotlin/blob/main/notebooks/01_mobilenet_v2_to_tflite.ipynb">companion notebook</a> we take MobileNet V2, a small pretrained classifier that knows about 1,000 everyday things, from coffee mugs to golden retrievers. We convert it into a 14 MB .tflite file and test it on a photo of Grace Hopper. It correctly spotted her military uniform, so the model is ready.</p><p>One catch, though: MobileNet only knows what it saw in training, and those 1,000 things were never picked with a Kenyan kitchen in mind. Point it at a sufuria, a jiko, or a plate of ugali, and it will confidently guess something else entirely. That’s not a bug, it’s the limit of a borrowed model. Fixing it is exactly what Part 3 is for, where we train our own model, so stay tuned.</p><p>Now it’s time to move that .tflite file into an Android app. Fire up Android Studio and create a new project. Go ahead, I&#39;m not going anywhere. Grab a coffee and let’s wait while Gradle syncs.</p><p>If you’d rather read the finished thing first, check out the full <a href="https://github.com/Jeremy-Gitau/on-device-ml-kotlin/tree/main/samples/image_classification">image classification </a>sample app, clone it, and follow along.</p><p>We’ll skip the UI and focus on the engine: the classes that turn a camera frame into a prediction and the threads that keep it all running smoothly. By the end of today’s shenanigans, your phone will look at your coffee mug and say “coffee mug” in milliseconds, without even touching the internet.</p><h3>Know your model</h3><p>Now that we have our model and its fully tested, we need to know exactly what the model eats and what it returns. Check out the notebook’s outputs, where we see:</p><pre>Input   [1, 224, 224, 3]  float32  RGB image, pixels 0 to 1<br>Output  [1, 1001]         float32  one logit per class, index 0 = background</pre><p>Everything the app does is about honoring this contract. Hand the model a 640 × 480 frame with pixels from 0 to 255, and it won’t crash; it will just confidently give you nonsense.</p><p>Copy mobilenet_v2.tflite and labels.txt from the notebook into app/src/main/assets/.</p><h3>Setup</h3><p>A new Empty Activity project already gives you Compose. On top of that we need four things: LiteRT to run the model, CameraX to see, Koin to wire it all together, and ExifInterface so gallery photos come in the right way up. Add them to app/build.gradle.kts, and make sure minSdk is at least 24 since LiteRT 2.3.0 needs it.</p><pre>dependencies {<br>    // LiteRT<br>    implementation(&quot;com.google.ai.edge.litert:litert:2.3.0&quot;)<br><br>    // CameraX<br>    implementation(&quot;androidx.camera:camera-camera2:1.6.2&quot;)<br>    implementation(&quot;androidx.camera:camera-lifecycle:1.6.2&quot;)<br>    implementation(&quot;androidx.camera:camera-view:1.6.2&quot;)<br><br>    // Koin<br>    implementation(platform(&quot;io.insert-koin:koin-bom:4.2.2&quot;))<br>    implementation(&quot;io.insert-koin:koin-android&quot;)<br>    implementation(&quot;io.insert-koin:koin-androidx-compose&quot;)<br><br>    // Lifecycle aware state in Compose, and photo rotation<br>    implementation(&quot;androidx.lifecycle:lifecycle-runtime-compose:2.6.1&quot;)<br>    implementation(&quot;androidx.exifinterface:exifinterface:1.4.2&quot;)<br>}</pre><p>The Koin BOM keeps every Koin library on the same version, which is why those two lines need no version of their own.</p><p>The camera needs permission, so add this to AndroidManifest.xml above &lt;application&gt;:</p><pre>&lt;uses-feature android:name=&quot;android.hardware.camera&quot; android:required=&quot;false&quot; /&gt;<br>&lt;uses-permission android:name=&quot;android.permission.CAMERA&quot; /&gt;</pre><p>Finally, the model. In Android Studio, right-click main and choose <strong>New → Directory </strong>and name the folder assets, then drop mobilenet_v2.tflite and labels.txt from the notebook into app/src/main/assets/. Sync Gradle and sip some coffee from your favorite mug (the one we’ll scan later on), and we’re ready to write some Kotlin.</p><h3>Step 1: LiteRtInference</h3><p>Create sources/local/LiteRtInference.kt. It&#39;s the only file in the app that knows LiteRT exists.</p><pre>import android.content.Context<br>import com.google.ai.edge.litert.Accelerator<br>import com.google.ai.edge.litert.CompiledModel<br><br>// We use AutoCloseable because the model holds resources we must free ourselves when we&#39;re done.<br>interface LiteRtInference : AutoCloseable {<br>    operator fun invoke(input: FloatArray): FloatArray<br>}<br>class LiteRtInferenceImpl(<br>    context: Context,<br>    modelPath: String,<br>) : LiteRtInference {<br>    private val model =<br>        CompiledModel.create(<br>            context.assets,<br>            modelPath,<br>            CompiledModel.Options(Accelerator.CPU),<br>        )<br>    // Create the buffers once and reuse them for every frame.<br>    // model.run(inputBuffers) would allocate new output buffers on every call.<br>    private val inputBuffers = model.createInputBuffers()<br>    private val outputBuffers = model.createOutputBuffers()<br>    override fun invoke(input: FloatArray): FloatArray {<br>        inputBuffers[0].writeFloat(input)<br>        model.run(inputBuffers, outputBuffers)<br>        return outputBuffers[0].readFloat()<br>    }<br><br>    // Free the model&#39;s resources<br>    override fun close() {<br>        inputBuffers.forEach { it.close() }<br>        outputBuffers.forEach { it.close() }<br>        model.close()<br>    }<br>}</pre><p>Now register it with Koin in sources/local/di/LocalSourceModule.kt:</p><pre>val localSourceModule =<br>    module {<br>        // factory, not single: each ViewModel gets its own model and closes it when done<br>        factory&lt;LiteRtInference&gt; { LiteRtInferenceImpl(androidContext(), &quot;mobilenet_v2.tflite&quot;) }<br>    }</pre><h3>Step 2: ImagePreprocessor</h3><p>Remember the contract from the notebook? The model wants one upright 224 × 224 image with pixels from 0 to 1. Camera frames arrive rectangular, often sideways, with pixels from 0 to 255. That’s why we preprocess every frame, reshaping it to match the contract before the model ever sees it. Now create sources/local/ImagePreprocessor.kt to do exactly that:</p><pre>import android.graphics.Bitmap<br>import android.graphics.Matrix<br>import androidx.core.graphics.scale<br><br>interface ImagePreprocessor {<br>    operator fun invoke(<br>        bitmap: Bitmap,<br>        rotationDegrees: Int = 0,<br>    ): FloatArray<br>}<br><br>class ImagePreprocessorImpl(<br>    private val inputSize: Int = 224,<br>) : ImagePreprocessor {<br>    override fun invoke(<br>        bitmap: Bitmap,<br>        rotationDegrees: Int,<br>    ): FloatArray {<br>        // 1. Crop the centre square and rotate it upright<br>        val side = minOf(bitmap.width, bitmap.height)<br>        val x = (bitmap.width - side) / 2<br>        val y = (bitmap.height - side) / 2<br>        val matrix = Matrix().apply { postRotate(rotationDegrees.toFloat()) }<br>        val square = Bitmap.createBitmap(bitmap, x, y, side, side, matrix, true)<br><br>        // 2. Resize to 224 x 224<br>        val resized = square.scale(inputSize, inputSize)<br><br>        // 3. Each pixel is one Int packed as ARGB. Pull out red, green and blue,<br>        //    and turn each from 0..255 into a float from 0 to 1 by dividing by /255.<br>        val pixels = IntArray(inputSize * inputSize)<br>        resized.getPixels(pixels, 0, inputSize, 0, 0, inputSize, inputSize)<br><br>        val input = FloatArray(inputSize * inputSize * 3)<br>        for (i in pixels.indices) {<br>            val pixel = pixels[i]<br>            input[i * 3] = ((pixel shr 16) and 0xFF) / 255f // red<br>            input[i * 3 + 1] = ((pixel shr 8) and 0xFF) / 255f // green<br>            input[i * 3 + 2] = (pixel and 0xFF) / 255f // blue<br>        }<br>        return input<br>    }<br>}</pre><p>Add it to localSourceModule:</p><pre>factory&lt;ImagePreprocessor&gt; { ImagePreprocessorImpl() }</pre><h3>Step 3: PredictionPostprocessor</h3><p>On the other end, the model doesn’t actually say “coffee mug.&quot; It hands back 1001 raw scores called logits, which mean nothing to a human, yet. But take the highest score, find its line in labels.txt, and you get “coffee mug.&quot; So first, let’s give each answer a home with a tiny data class in domain/models/PredictionDomain.kt:</p><pre>data class PredictionDomain(<br>    val label: String,<br>    val confidence: Float, // 0 to 1<br>)</pre><p>Now for the translator. Create sources/local/PredictionPostprocessor.kt, which turns those scores into percentages and picks the top 3 guesses:</p><pre>import android.content.Context<br>import imageclassification.domain.models.PredictionDomain<br>import kotlin.math.exp<br><br>interface PredictionPostprocessor {<br>    operator fun invoke(<br>        logits: FloatArray,<br>        topK: Int = 3,<br>    ): List&lt;PredictionDomain&gt;<br>}<br><br>class PredictionPostprocessorImpl(<br>    context: Context,<br>    labelsPath: String,<br>) : PredictionPostprocessor {<br>    // Read labels.txt once <br>    // .use{} closes the file even if reading fails.<br>    private val labels: List&lt;String&gt; =<br>        context.assets<br>            .open(labelsPath)<br>            .bufferedReader()<br>            .use { it.readLines() }<br><br>    override fun invoke(<br>        logits: FloatArray,<br>        topK: Int,<br>    ): List&lt;PredictionDomain&gt; {<br>        // Fail loudly if labels and scores don&#39;t line up, instead of every label being off by one<br>        require(logits.size == labels.size) {<br>            &quot;Model returned ${logits.size} scores but labels.txt has ${labels.size} lines&quot;<br>        }<br><br>        // 1. Softmax: turn logits into probabilities that add up to 1.<br>        //    Subtracting the max first stops exp() from overflowing.<br>        val max = logits.max()<br>        val exponential = FloatArray(logits.size) { exp(logits[it] - max) }<br>        val sum = exponential.sum()<br>        val probabilities = FloatArray(exponential.size) { exponential[it] / sum }<br><br>        // 2. Top K: the highest probabilities, paired with their labels<br>        return probabilities.indices<br>            .sortedByDescending { probabilities[it] }<br>            .take(topK)<br>            .map { PredictionDomain(label = labels[it], confidence = probabilities[it]) }<br>    }<br>}</pre><p>And, as is tradition by now, add it to our dependency injection in localSourceModule:</p><pre>factory&lt;PredictionPostprocessor&gt; { PredictionPostprocessorImpl(androidContext(), &quot;labels.txt&quot;) }</pre><p>And that’s the whole local source. Next, we wire these three together.</p><h3>Step 4: ClassifierRepository</h3><p>Three classes, three jobs. Now someone has to run them in the right order and catch anything that goes wrong. Enter the repository.</p><p>First, a few small domain pieces. A result to carry the predictions and how long the model took, in domain/models/ClassificationDomain.kt:</p><pre>data class ClassificationDomain(<br>    val predictions: List&lt;PredictionDomain&gt;,<br>    val inferenceTimeMillis: Long,<br>)</pre><p>A sealed result in domain/DataResult.kt, so callers get either a success or an error, never a surprise exception:</p><pre>sealed interface DataResult&lt;out T&gt; {<br>    data class Success&lt;T&gt;(<br>        val data: T,<br>    ) : DataResult&lt;T&gt;<br><br>    data class Error(<br>        val message: String,<br>        val cause: Throwable? = null,<br>    ) : DataResult&lt;Nothing&gt;<br>}</pre><p>And the contract the ViewModel will talk to, in domain/repository/ClassifierRepository.kt:</p><pre>interface ClassifierRepository {<br>    fun classify(<br>        bitmap: Bitmap,<br>        rotationDegrees: Int,<br>    ): DataResult&lt;ClassificationDomain&gt;<br><br>    fun close()<br>}</pre><p>Now the implementation, data/repository/ClassifierRepositoryImpl.kt.</p><pre>class ClassifierRepositoryImpl(<br>    private val preprocess: ImagePreprocessor,<br>    // Lazy: don&#39;t create these until classify() first needs them.<br>    // That way the 14 MB model loads on the camera&#39;s background thread, not the main thread,<br>    private val inference: Lazy&lt;LiteRtInference&gt;,<br>    private val postprocess: Lazy&lt;PredictionPostprocessor&gt;,<br>) : ClassifierRepository {<br>    override fun classify(<br>        bitmap: Bitmap,<br>        rotationDegrees: Int,<br>    ): DataResult&lt;ClassificationDomain&gt; =<br>        try {<br>            val input = preprocess(bitmap, rotationDegrees)<br>            val (logits, duration) = measureTimedValue { inference.value(input) }<br>            val predictions = postprocess.value(logits)<br>            DataResult.Success(<br>                ClassificationDomain(<br>                    predictions,<br>                    duration.inWholeMilliseconds,<br>                ),<br>            )<br>        } catch (e: Exception) {<br>            DataResult.Error(<br>                message = e.message ?: &quot;Classification failed&quot;,<br>                cause = e,<br>            )<br>        }<br>    // Only close the model if it was ever loaded<br>    override fun close() {<br>        if (inference.isInitialized()) inference.value.close()<br>    }<br>}</pre><p>Its dependency injection lives in data/di/DataModule.kt:</p><pre>val dataModule =<br>    module {<br>        factory&lt;ClassifierRepository&gt; {<br>            ClassifierRepositoryImpl(<br>                preprocess = get(),<br>                // lazy { }: only create these the first time they&#39;re used<br>                inference = lazy { get&lt;LiteRtInference&gt;() },<br>                postprocess = lazy { get&lt;PredictionPostprocessor&gt;() },<br>            )<br>        }<br>    }</pre><h3>Step 5: ClassifierViewModel</h3><p>This is the step where I tripped a couple of times, so let’s slow down for a second.</p><p>CameraX hands us frames on its own background thread. My first instinct was to wrap the call in viewModelScope.launch { }. Looks innocent, right? But viewModelScope runs on the <strong>main thread</strong> by default, so every frame&#39;s inference ran on the UI thread. The screen stuttered, and CameraX kept firing frames because it thought we were done.</p><p>The fix was to do less: no launch at all. We&#39;re already on a background thread, so we just call classify directly. Blocking that thread is actually the point. While the model is busy, CameraX quietly drops the frames we can&#39;t keep up with.</p><p>Here’s the ViewModel, trimmed to the live camera path (the full version with Photo mode is in the repo):</p><pre>data class ClassifierUiState(<br>    val isLoading: Boolean = true,<br>    val predictions: List&lt;PredictionDomain&gt; = emptyList(),<br>    val inferenceMs: Long? = null,<br>    val error: String? = null,<br>)</pre><pre>sealed interface ClassifierAction {<br>    data class ClassifyFrame(<br>        val bitmap: Bitmap,<br>        val rotationDegrees: Int,<br>    ) : ClassifierAction<br>}<br>class ClassifierViewModel(<br>    private val classifierRepository: ClassifierRepository,<br>) : ViewModel() {<br>    private val _uiState = MutableStateFlow(ClassifierUiState())<br>    val uiState: StateFlow&lt;ClassifierUiState&gt; = _uiState.asStateFlow()<br>    private val lock = Any()<br>    @Volatile<br>    private var closed = false<br>    fun onAction(action: ClassifierAction) {<br>        when (action) {<br>            // No launch: we&#39;re already on CameraX&#39;s background thread<br>            is ClassifierAction.ClassifyFrame -&gt; classify(action.bitmap, action.rotationDegrees)<br>        }<br>    }<br>    private fun classify(<br>        bitmap: Bitmap,<br>        rotationDegrees: Int,<br>    ) {<br>        val result =<br>            synchronized(lock) {<br>                if (closed) return<br>                classifierRepository.classify(bitmap, rotationDegrees)<br>            }<br>        _uiState.update {<br>            when (result) {<br>                is DataResult.Success -&gt;<br>                    it.copy(<br>                        isLoading = false,<br>                        predictions = result.data.predictions,<br>                        inferenceMs = result.data.inferenceTimeMillis,<br>                        error = null,<br>                    )<br>                is DataResult.Error -&gt;<br>                    it.copy(<br>                        isLoading = false,<br>                        predictions = emptyList(),<br>                        inferenceMs = null,<br>                        error = result.message,<br>                    )<br>            }<br>        }<br>    }<br>    // Runs on the main thread, maybe while a frame is still running.<br>    // The lock waits for that frame to finish, then frees the model.<br>    override fun onCleared() {<br>        synchronized(lock) {<br>            closed = true<br>            classifierRepository.close()<br>        }<br>    }<br>}</pre><p>One exception to the no launch rule: photos picked from the gallery arrive on the main thread, so in the full version those hop to Dispatchers.Default first.</p><p>And the ViewModel’s dependency injection, in ui/di/UiModule.kt:</p><pre>val uiModule =<br>    module {<br>        viewModelOf(::ClassifierViewModel)<br>    }</pre><h3>Step 6: Plug in the camera</h3><p>The only bit of UI we’ll touch. In your CameraX setup, give ImageAnalysis two settings and hand every frame to the ViewModel:</p><pre>val analysis =<br>    ImageAnalysis<br>        .Builder()<br>        // Drop frames while the model is busy instead of queueing them up<br>        .setBackpressureStrategy(ImageAnalysis.STRATEGY_KEEP_ONLY_LATEST)<br>        // Lets us call toBitmap() without converting YUV ourselves<br>        .setOutputImageFormat(ImageAnalysis.OUTPUT_IMAGE_FORMAT_RGBA_8888)<br>        .build()<br>analysis.setAnalyzer(cameraExecutor) { image -&gt;<br>    image.use {<br>        onAction(<br>            ClassifierAction.ClassifyFrame(<br>                it.toBitmap(),<br>                it.imageInfo.rotationDegrees,<br>            ),<br>        )<br>    }<br>}</pre><p>cameraExecutor is a plain Executors.newSingleThreadExecutor(). That single background thread is the one our ViewModel happily blocks.</p><p>Last step: start Koin with all three modules in an Application class:</p><pre>class ImageClassificationApp : Application() {<br>    override fun onCreate() {<br>        super.onCreate()<br>        startKoin {<br>            androidLogger()<br>            androidContext(this@ImageClassificationApp)<br>            modules(<br>                localSourceModule,<br>                dataModule,<br>                uiModule,<br>            )<br>        }<br>    }<br>}</pre><p>Register it with android:name=&quot;.ImageClassificationApp&quot; on the &lt;application&gt; tag in your manifest, then hit Run. Remember that coffee mug? Point your phone at it.</p><h3>What I learnt</h3><ul><li><strong>viewModelScope.launch is not a background thread.</strong> It runs on the main thread unless you say otherwise. Check where you already are before you launch anything.</li><li><strong>The quickstart call isn’t the camera call.</strong> model.run(inputBuffers) creates new buffers every time. Fine for one image, wasteful at 30 frames a second.</li><li><strong>Close what you open.</strong> The model holds resources Kotlin won’t free for you, so make it AutoCloseable and close it in onCleared().</li></ul><p>On my phone, one frame takes about <strong>30</strong> <strong>ms to at least 80 ms </strong>on the CPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*5mvHWU4th-KcoZeeD9_utA.gif" /></figure><h3>Next up</h3><p>Remember the sufuria problem? In Part 3 we fix it. We’ll train our own model on things MobileNet has never seen, convert it, shrink it, and drop it into this very same app. Same pipeline, smarter brain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca84f8d4d8c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/part-2-running-your-first-model-with-litert-in-kotlin-ca84f8d4d8c9">Part 2: Running Your First Model with LiteRT in Kotlin</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Episode #40]]></title>
            <link>https://medium.com/kotlinkenya-android254/episode-40-6fae3c383efb?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/6fae3c383efb</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[meetup]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 07:52:51 GMT</pubDate>
            <atom:updated>2026-10-05T07:52:50.981Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Know Your Meme(s)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UnjviXBeC63FJbkR3ymaSA.jpeg" /></figure><h4>Welcome and Bienvenue</h4><p>Welcome to the fourth floor of the Newsletter. The paper is now buying tacky sports cars and getting into skinny jeans. It is Episode #40 🎊.</p><p>Unlike your favourite show that was cancelled after Season 1, this paper has shown up consistently for 40 meetups. It has been touched by 3 editors, lived on Medium, moved to Vercel, and somehow found its way back to Medium. 40 more to go. Let’s beat Game of Thrones, shall we?</p><p>Anywhootles. This September, alongside the annual crop of people born suspiciously close to New Year’s celebrating their birthdays, we had the first edition of the Kotlin Kenya and Android254 Campus Tour. 🎉</p><p>The GDG on Campus JKUAT chapter lent us their ears, eyes and venue as we spent the day talking to the next wave of Mobile Engineers. Startups were pitched, stickers and Droidcon tickets were handed out, and generally, a good time was had.</p><h4>Why Kotlin: The Problems It Solves and Where It Takes You — Jacqui Gitau</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*1V3MY63yOlUdXEkU9Yw73Q.png" /><figcaption>Jacqui showing how wide the scope of things Kotlin can do.</figcaption></figure><p>Ever wondered why you should learn Kotlin? What career opportunities does it open up? Can you use it for backend? Frontend? Machine learning? Multiplatform apps?</p><p>According to Jacqui, yes. Pretty much all of it.</p><p>Her session explored Kotlin’s versatility, type safety and the many directions you can take once you know the language. She also tackled the inevitable “Okay, I’m interested. Now what?” question, covering where to learn, what tools to use and where to go from there.</p><p>Sad you missed it? You know where we’ll be next.</p><h4>Android Beyond the UI: What Happens Behind Your App Screen? — Tim Owen</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*3ZNFazMaz5Wddg_WV4I3Kg.png" /><figcaption>Tim missing his kitchen.</figcaption></figure><p>A phrase I have often heard from our sales team is, “It is just a button. Why does it take this long to build?” I am sure this is not a unique experience. Tim’s talk is one I wish I had invited more people to, as we explored the journey of your data from being visualised in the UI, to being held as a state, to the window, to the wall, all the way to the API and back. He also went through what recruiters and engineering managers look for in candidates of all experience levels.</p><p>Tim is currently hiring for a <a href="https://www.linkedin.com/posts/timothy-owen-465895169_hiring-devops-backend-ugcPost-7506415769510064129-dGvm?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAD7fSrkBgq6_JDhWlGh3RpRy1-eAUOCNZHE">few roles</a>; check out his post to see what fits you best.</p><h4>Working with big data in Compose the right way — Donald Isoe</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*KBx415m3aMTI6U7dA0tNkw.png" /><figcaption>Don forcing his failed career as a rapper</figcaption></figure><p>We have all opened an app with a long scrollable list and watched our phones hang like this morning’s laundry (Ahem, X/Twitter Android app circa 2 months ago thanks to the ANRs). It is naive to assume the app that you built for users will not get large amounts of data. Don’s talk explored the first and easiest step in making our apps scale with the growth we pray it gets. We explored good list management practices, recomposition and stable keys and had a peek at pagination.</p><h4>Building with Koog and MCP in Kotlin — Jeremy Gitau</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nc0zQm9RTsFuR5sX0pSGw.png" /><figcaption>So.. the funniest thing happened 🤣</figcaption></figure><p>The second half of this meetup’s 2(J-Gitau) pair took us into the increasingly weird world of AI agents.</p><p>Jeremy gave us a high-level look at Koog, JetBrains’ JVM-native framework for building fault-tolerant and scalable AI agents, and showed how an agent can be connected to an MCP (Model Context Protocol) server and made accessible to AI-powered applications with authorised access.</p><p>Want to know more about putting intelligence into your apps? Jeremy also wrote about <a href="http://medium.com/kotlinkenya-android254/part-1-on-device-ml-with-kotlin-2c45f3ec3d5c">on-device ML</a>.</p><h4>Remindly: Smart Schedule — Victor Kirui</h4><p>Remindly is an AI productivity app for Android that turns the digital junk drawer we call “Saved” into something you can actually do something with.</p><p>Found a useful webpage, PDF, screenshot or social post? Share it with Remindly and its AI extracts the important bits, figures out the deadline, turns it into a checklist and adds the commitment to your Google Calendar.</p><p>It also comes with widgets, Gemini integration and cross-device sync, so your future self has slightly less work to do.</p><p><strong>The problem it solves</strong></p><p>We are all very good at saving things and considerably worse at doing anything with them.</p><p>Remindly turns those forgotten bookmarks, screenshots, PDFs and links into organised, trackable goals.</p><p><a href="https://play.google.com/store/apps/details?id=com.victorkirui.remindly">Get it on the Play Store</a> and give it a try.</p><h4>DroidCon Kenya is here 🎊🎉</h4><p>Do you have your Droidcon ticket? Stop looking at the person next to you. Yes, you 🫵🏽😂.</p><p>Droidcon is merely weeks away. The engineers are practising their handshakes, rehearsing their small talk and requesting their PTOs. We hope you are one of them. If not, you still have time. <a href="https://tickets.droidcon.co.ke/">Get your tickets</a> and meet Mobile engineers from all around the world and maybe make a friend or two.</p><h4>GDG On Campus JKUAT</h4><p>Major thanks to the <a href="https://gdg.community.dev/gdg-on-campus-jomo-kenyatta-university-of-agriculture-and-technology-juja-kenya/">GDG On Campus JKUAT</a> for hosting us at their Juja campus. If you attended this meetup, you will likely love what more they have in store.</p><p>See their packed October lineup on their page, go win some merch, and, because you likely need some, make a friend or two 😂.</p><h4>JetBrains Says Hi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*h97DgRyUonFH3HJi.png" /></figure><p>Our good friends at <a href="https://www.jetbrains.com/">JetBrains</a>, the creators of Kotlin, once again sent their support (and gifts 👀) to the community. No, unfortunately, they didn’t send free IntelliJ Ultimate licenses for everyone.</p><p>From active community members to regular speakers, it’s always good to see contributors being recognised by the wider Kotlin ecosystem.</p><h4>Before you go</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*A5KynodX8qr7S36f.gif" /></figure><p>Thinking about speaking at one of our upcoming meetups?</p><p>Got a topic, a project, or an idea you can’t stop talking about? This is your chance to share it with the community. <a href="https://forms.gle/n21x8avPtA2A4fBg8">Submit a talk</a>, or if crowds aren’t your thing, submit an <a href="https://medium.com/kotlinkenya-android254/submission-guidelines-kotlin-kenya-411c9ba359f2">article</a> instead.</p><p>We’re always looking for new voices, fresh perspectives, and people ready to teach (or at least attempt to).</p><h4>See you in October for the Pre-Droidcon meetup</h4><p>We’re looking forward to seeing you in October for the Pre-Droidcon meetup, where the Droidcon team will brief us on what to expect when we are expecting.</p><p>Until then, keep coding… and that handshake needs work.</p><h3>Credits</h3><h4>1. Editors</h4><ul><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li></ul><h4>2. Speakers</h4><ul><li><a href="https://www.linkedin.com/in/jacquiline-gitau/">Jacqui Gitau</a></li><li><a href="https://www.linkedin.com/in/timothy-owen-465895169/">Timothy Owen</a></li><li><a href="https://www.linkedin.com/in/donald-isoe-a21310255/">Donald Isoe</a></li><li><a href="https://www.linkedin.com/in/jeremy-gitau-3102611a0/">Jeremy Gitau</a></li></ul><h4>3. Organising Team</h4><ul><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li><li><a href="https://x.com/mishwainaina">Michelle Wainaina</a></li><li><a href="https://x.com/_JeremyGitau">Jeremiah Gitau</a></li><li><a href="https://x.com/_kibetheophilus">Theophilus Kibet</a></li><li><a href="https://x.com/Victorvics42">Victor Kirui</a></li><li><a href="https://www.linkedin.com/in/donald-isoe-a21310255/">Donald Isoe</a></li></ul><h4>4. Meetup Host</h4><ul><li><a href="https://gdg.community.dev/gdg-on-campus-jomo-kenyatta-university-of-agriculture-and-technology-juja-kenya/">GDG on Campus JKUAT</a></li></ul><h4>5. Sponsors and Partners</h4><ul><li><a href="https://www.jetbrains.com/">Jetbrains</a></li><li><a href="https://droidcon.co.ke/">Droidcon Kenya</a></li><li><a href="https://gdg.community.dev/gdg-on-campus-jomo-kenyatta-university-of-agriculture-and-technology-juja-kenya/">GDG On Campus JKUAT</a></li></ul><h4>6. The Community Members</h4><ul><li><a href="https://www.meetup.com/android254/">The Community Members [Android254]</a></li><li><a href="https://www.meetup.com/kotlinkenya/">The Community Members [Kotlin Kenya]</a></li><li><a href="https://gdg.community.dev/gdg-on-campus-jomo-kenyatta-university-of-agriculture-and-technology-juja-kenya/">GDG On Campus JKUAT</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fae3c383efb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/episode-40-6fae3c383efb">Episode #40</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: On-Device ML with Kotlin]]></title>
            <link>https://medium.com/kotlinkenya-android254/part-1-on-device-ml-with-kotlin-2c45f3ec3d5c?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/2c45f3ec3d5c</guid>
            <category><![CDATA[ml-on-device]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[litert]]></category>
            <category><![CDATA[litert-lm]]></category>
            <dc:creator><![CDATA[Jeremy Gitau]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 12:05:39 GMT</pubDate>
            <atom:updated>2026-09-30T12:05:38.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvd4ld_LvUqUy7azR2hhrA.png" /></figure><h3>Introduction</h3><p>A few years ago, while on campus, I built two Android apps that ran ML models on the phone. One detected skin cancer from images, and the other was a <a href="https://github.com/Jeremy-Gitau/Plant_leaf_detector_android_app">plant leaf disease detector</a>. I trained both of them using CNN (Convolutional Neural Network) and used about 10,000 images, sourced from Kaggle, for each project.</p><p>Both were written in Java and ran on TensorFlow Lite (TFLite). The Android side of the codebase was, and still is, completely chaotic. Getting it to work wasn’t easy; I remember watching a number of YouTube videos, reading articles, and enrolling in short courses just to understand the concepts. I would try out various code structures from different YouTube videos until I landed on the one that worked. Please don’t judge me; I was a beginner, and I know you’ve been there too. I remember copying model-loading code I only half understood, fighting input shapes, and celebrating when a label finally appeared on screen even when the classification was wrong.</p><p>A lot has changed since then. I actually understand what I’m doing now; I’ve moved to Kotlin, Jetpack Compose, and Multiplatform, and the ML tooling has moved on too. So I’m picking on-device ML up again, this time in Kotlin, and in public, one short post at a time.</p><h3>TensorFlow Lite has a new name.</h3><p>TensorFlow Lite is now <a href="https://developers.google.com/edge/litert"><strong>LiteRT</strong></a>, short for <em>Lite Runtime</em>. Google rebranded it in 2024 as part of the <a href="https://developers.google.com/edge"><strong>Google AI Edge</strong></a><strong> </strong>suite of tools.</p><p>In simple terms, LiteRT is the engine that runs a trained ML model on a phone, laptop, or small device, without sending data to a server. You train a model elsewhere, convert it to a small .tflite file, ship it inside your app, and LiteRT runs it locally.</p><p>The rebrand also reflects a bigger scope. LiteRT isn’t just for TensorFlow anymore; models built in <strong>PyTorch</strong> and <strong>JAX</strong> can be converted to run on it too. It can use the phone’s <strong>CPU, GPU, or NPU</strong> (the chip built for AI tasks) to speed things up.</p><p>For existing projects, the good news is that old .tflite models still work. What changed is the library and the recommended API. The new CompiledModel API is now the preferred way to run models, in place of the Interpreter code I used back then.</p><h3><strong>Why run models on the phone?</strong></h3><p>You could call a cloud API instead, so why bother running models on-device? A few reasons:</p><ul><li><strong>It works offline.</strong> No internet? No problem. The model lives on the phone.</li><li><strong>It’s fast.</strong> There’s no round trip to a server, so results come back in milliseconds, fast enough for a live camera feed.</li><li><strong>It’s private.</strong> The data never leaves the device. For something like a photo of someone or their personal data, going offline really matters.</li><li><strong>It’s cheap.</strong> No API bills for you, and no burned data bundles for your users.</li></ul><p>It’s not always the right choice. Very large models, or models you update every week, may still belong in the cloud. But for many everyday features, on-device is the better fit.</p><h3><strong>What’s coming in this series?</strong></h3><p>The series follows the path Google lays out for LiteRT: get a model, optimize it, run it on the device, and then move on to generative AI.</p><ol><li><strong>Revisiting On-Device ML with Kotlin (</strong>this post)</li><li><strong>Running your first model:</strong> a pretrained model from TensorFlow, how to prepare its inputs and read its outputs, and live predictions from the phone’s camera</li><li><strong>Bring your own model:</strong> training a model, converting it to .tflite, optimizing it, and shipping it in an app</li><li><strong>What LiteRT-LM is:</strong> how LiteRT handles language models and how it differs from classic ML models</li><li><strong>Running an LLM fully on-device:</strong> a chat that works with no internet at all</li></ol><p><strong>Bonus:</strong> LiteRT in Kotlin Multiplatform</p><p>All the code will live in one GitHub repo, with a checkpoint for each post, so you can follow along step by step.</p><p>If you’ve been curious about on-device ML on Android, follow along. I’ll share what breaks as well as what works.</p><p><em>Next up: running our first model in Kotlin.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c45f3ec3d5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/part-1-on-device-ml-with-kotlin-2c45f3ec3d5c">Part 1: On-Device ML with Kotlin</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Play Closed Testing Before Production Access: Practical Lessons for Android Developers]]></title>
            <link>https://medium.com/kotlinkenya-android254/google-play-closed-testing-before-production-access-practical-lessons-for-android-developers-2e63940624bc?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/2e63940624bc</guid>
            <category><![CDATA[google-play]]></category>
            <category><![CDATA[google-play-console]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Keshav Infotech]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 07:01:04 GMT</pubDate>
            <atom:updated>2026-09-14T07:01:03.514Z</atom:updated>
            <content:encoded><![CDATA[<p>The 12-testers / 14-day rule sounds simple. In practice, account selection, opt-in state, tester continuity, feedback, and production-readiness questions are where developers often run into trouble.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yGOqZ8Uzf4S0ANA-LIccBw.jpeg" /><figcaption>Google Play closed testing before production access: 12 testers continuously opted in for 14 days.</figcaption></figure><p>Publishing an Android app for the first time can feel straightforward until Play Console asks for a closed test before production access.</p><p>For personal developer accounts created after 13 November 2023, Google currently requires a closed test with at least 12 testers continuously opted in for at least 14 days before the developer can apply for production access.</p><p>𝗠𝗲𝗲𝘁𝗶𝗻𝗴 𝘁𝗵𝗮𝘁 𝗿𝗲𝗾𝘂𝗶𝗿𝗲𝗺𝗲𝗻𝘁 𝗮𝗹𝗹𝗼𝘄𝘀 𝘆𝗼𝘂 𝘁𝗼 𝗮𝗽𝗽𝗹𝘆. 𝗜𝘁 𝗱𝗼𝗲𝘀 𝗻𝗼𝘁 𝗮𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗰𝗮𝗹𝗹𝘆 𝗴𝘂𝗮𝗿𝗮𝗻𝘁𝗲𝗲 𝘁𝗵𝗮𝘁 𝗚𝗼𝗼𝗴𝗹𝗲 𝘄𝗶𝗹𝗹 𝗴𝗿𝗮𝗻𝘁 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝗮𝗰𝗰𝗲𝘀𝘀.</p><p>After working with developers going through this process, I have found that the difficult part is rarely understanding the number “12” or the duration “14 days.”</p><p>The difficult part is making sure the test has actually been set up and run correctly.</p><p>𝟭. 𝗕𝗲𝗶𝗻𝗴 𝗮𝗱𝗱𝗲𝗱 𝗮𝘀 𝗮 𝘁𝗲𝘀𝘁𝗲𝗿 𝗶𝘀 𝗻𝗼𝘁 𝘁𝗵𝗲 𝘀𝗮𝗺𝗲 𝗮𝘀 𝗯𝗲𝗶𝗻𝗴 𝗼𝗽𝘁𝗲𝗱 𝗶𝗻</p><p>One of the most common misunderstandings is assuming that adding an email address to a tester list means that person is already participating in the closed test.</p><p>𝗜𝘁 𝗱𝗼𝗲𝘀 𝗻𝗼𝘁.</p><p>A tester still needs to access the correct opt-in flow with an eligible Google account and join the test successfully.</p><p>This distinction matters because a developer may believe they have recruited 12 people while Play Console still shows fewer eligible testers.</p><p>When troubleshooting, I normally separate the process into three questions:</p><p>• Was the correct Google account added to the tester list?</p><p>• Did the tester open the correct opt-in link?</p><p>• Did the tester actually complete the opt-in process?</p><p>Checking these one by one is much more useful than simply resending the same link.</p><p>𝟮. 𝗧𝗵𝗲 𝗚𝗼𝗼𝗴𝗹𝗲 𝗮𝗰𝗰𝗼𝘂𝗻𝘁 𝗺𝗮𝘁𝘁𝗲𝗿𝘀</p><p>Another recurring issue is account mismatch.</p><p>A developer may invite:</p><p><a href="/service/mailto:example@gmail.com">example@gmail.com</a></p><p>but the tester opens the Play Store or opt-in link while signed in with a different Google account.</p><p>From the tester’s point of view, everything may look normal.</p><p>From the developer’s point of view, the expected tester may never appear correctly.</p><p>Before troubleshooting anything more complicated, ask the tester to confirm which Google account is active in the browser and Play Store.</p><p>Google’s testing documentation states that testers need a Google Account or Google Workspace account to join a test.</p><p>𝟯. 𝗧𝗲𝘀𝘁𝗲𝗿 𝗰𝗼𝗻𝘁𝗶𝗻𝘂𝗶𝘁𝘆 𝗺𝗮𝘁𝘁𝗲𝗿𝘀 𝗺𝗼𝗿𝗲 𝘁𝗵𝗮𝗻 𝗺𝗮𝗻𝘆 𝗱𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿𝘀 𝗲𝘅𝗽𝗲𝗰𝘁</p><p>The current rule is not simply:</p><p>𝗚𝗲𝘁 𝟭𝟮 𝗽𝗲𝗼𝗽𝗹𝗲 𝗮𝘁 𝘀𝗼𝗺𝗲 𝗽𝗼𝗶𝗻𝘁 𝗱𝘂𝗿𝗶𝗻𝗴 𝘁𝘄𝗼 𝘄𝗲𝗲𝗸𝘀.</p><p>Google requires at least 12 testers to be opted in continuously for the preceding 14 days when the developer applies for production access.</p><p>Google also explains that if a tester opts out and later opts back in, that tester’s qualifying 14-day period must be consecutive.</p><p>This is why I prefer having some buffer instead of recruiting exactly 12 people.</p><p>If you have exactly 12 and one person leaves, your margin disappears immediately.</p><p>That does not mean one tester opting out automatically resets the history of every other tester.</p><p>The practical problem is that the tester who opted out may no longer satisfy the continuous opt-in requirement until they complete a new consecutive period.</p><p>𝟰. 𝗔 𝘁𝗲𝘀𝘁𝗲𝗿 𝗰𝗼𝘂𝗻𝘁 𝘁𝗵𝗮𝘁 𝗹𝗼𝗼𝗸𝘀 𝘄𝗿𝗼𝗻𝗴 𝗶𝘀 𝗻𝗼𝘁 𝗮𝗹𝘄𝗮𝘆𝘀 𝗮 𝗚𝗼𝗼𝗴𝗹𝗲 𝗯𝘂𝗴</p><p>Developers sometimes assume that Play Console is “not updating,” but several configuration problems can produce the same symptom.</p><p>Before treating it as a platform bug, check:</p><p>• the correct closed-testing track</p><p>• the correct tester list or Google Group</p><p>• the Google account the tester is using</p><p>• the correct opt-in URL</p><p>• whether the tester completed the opt-in</p><p>• whether the relevant release is actually available on that track</p><p>Google notes that after publishing a test for the first time, the testing link can take several hours to become available to testers.</p><p>Additional changes can also take several hours to become available.</p><p>The important lesson is not to invent one fixed waiting time for every Play Console update.</p><p>𝗜𝗻𝘀𝘁𝗲𝗮𝗱, 𝗲𝗹𝗶𝗺𝗶𝗻𝗮𝘁𝗲 𝗰𝗼𝗻𝗳𝗶𝗴𝘂𝗿𝗮𝘁𝗶𝗼𝗻 𝗺𝗶𝘀𝘁𝗮𝗸𝗲𝘀 𝗳𝗶𝗿𝘀𝘁.</p><p>𝟱. 𝗧𝗵𝗲 𝟭𝟰 𝗱𝗮𝘆𝘀 𝘀𝗵𝗼𝘂𝗹𝗱 𝗯𝗲 𝘂𝘀𝗲𝗱 𝗳𝗼𝗿 𝗮𝗰𝘁𝘂𝗮𝗹 𝘁𝗲𝘀𝘁𝗶𝗻𝗴</p><p>It is easy to treat the closed-test requirement as a countdown.</p><p>That misses the point.</p><p>When developers apply for production access, Google asks about:</p><p>• the closed test</p><p>• tester engagement</p><p>• feedback received</p><p>• the app or game</p><p>• production readiness</p><p>Google may require additional testing if the app is not considered ready, including situations involving insufficient tester engagement.</p><p>A useful closed-test plan should therefore give testers something meaningful to do.</p><p>For example:</p><p>• Complete onboarding</p><p>• Test the main user journey</p><p>• Create, edit, or delete important data</p><p>• Test authentication</p><p>• Check offline or poor-network behaviour where relevant</p><p>• Try different devices or screen sizes</p><p>• Report crashes</p><p>• Identify confusing UI</p><p>• Test notifications or background behaviour if the app uses them</p><p>𝗧𝗵𝗲 𝗽𝘂𝗿𝗽𝗼𝘀𝗲 𝗶𝘀 𝗻𝗼𝘁 𝘁𝗼 𝗺𝗮𝗻𝘂𝗳𝗮𝗰𝘁𝘂𝗿𝗲 𝗮𝗰𝘁𝗶𝘃𝗶𝘁𝘆.</p><p>It is to discover problems before real users encounter them.</p><p>𝟲. 𝗖𝗮𝗽𝘁𝘂𝗿𝗲 𝗳𝗲𝗲𝗱𝗯𝗮𝗰𝗸 𝘄𝗵𝗶𝗹𝗲 𝘁𝗵𝗲 𝘁𝗲𝘀𝘁 𝗶𝘀 𝗿𝘂𝗻𝗻𝗶𝗻𝗴</p><p>Do not wait until day 14 to ask everyone whether the app worked.</p><p>Create a simple feedback process from the beginning.</p><p>It can be as basic as:</p><p>• What feature did you test?</p><p>• Did anything fail?</p><p>• Was anything confusing?</p><p>• What device and Android version were you using?</p><p>• What would you improve?</p><p>Google encourages developers to provide testers with clear instructions, collect feedback, keep a record of it, and act on issues found during testing.</p><p>Google also requires developers to summarize testing feedback when applying for production access.</p><p>Even a small amount of structured feedback is more useful than twelve people saying only:</p><p>𝗪𝗼𝗿𝗸𝘀 𝗳𝗶𝗻𝗲.</p><p>𝟳. 𝗨𝗽𝗱𝗮𝘁𝗶𝗻𝗴 𝘁𝗵𝗲 𝗮𝗽𝗽 𝗱𝘂𝗿𝗶𝗻𝗴 𝗰𝗹𝗼𝘀𝗲𝗱 𝘁𝗲𝘀𝘁𝗶𝗻𝗴 𝗶𝘀 𝗻𝗼𝗿𝗺𝗮𝗹</p><p>Some developers are afraid to upload fixes during the 14-day period because they think changing the build automatically invalidates the test.</p><p>That is not how I approach a real test.</p><p>𝗜𝗳 𝘁𝗲𝘀𝘁𝗲𝗿𝘀 𝗳𝗶𝗻𝗱 𝗯𝘂𝗴𝘀, 𝘁𝗵𝗲 𝗽𝗼𝗶𝗻𝘁 𝗼𝗳 𝘁𝗲𝘀𝘁𝗶𝗻𝗴 𝗶𝘀 𝘁𝗼 𝗳𝗶𝘅 𝘁𝗵𝗲𝗺.</p><p>Google itself recommends continuing to run closed tests while resolving user-reported issues and bugs.</p><p>What matters is maintaining a controlled test process and keeping testers informed when a new build needs attention.</p><p>𝟴. 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗶𝗻𝗴 𝟭𝟰 𝗱𝗮𝘆𝘀 𝗶𝘀 𝗻𝗼𝘁 𝘁𝗵𝗲 𝘀𝗮𝗺𝗲 𝗮𝘀 𝗿𝗲𝗰𝗲𝗶𝘃𝗶𝗻𝗴 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝗮𝗰𝗰𝗲𝘀𝘀</p><p>This is probably the most important expectation to set.</p><p>After the closed-testing requirement is satisfied, the developer can apply for production access.</p><p>Google then reviews information covering:</p><p>• the closed test</p><p>• the app or game</p><p>• production readiness</p><p>Google may still require developers to continue testing.</p><p>So the correct mental model is:</p><p>𝗔𝘁 𝗹𝗲𝗮𝘀𝘁 𝟭𝟮 𝗰𝗼𝗻𝘁𝗶𝗻𝘂𝗼𝘂𝘀𝗹𝘆 𝗼𝗽𝘁𝗲𝗱-𝗶𝗻 𝘁𝗲𝘀𝘁𝗲𝗿𝘀 + 𝟭𝟰 𝗱𝗮𝘆𝘀 → 𝗲𝗹𝗶𝗴𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝘁𝗼 𝗮𝗽𝗽𝗹𝘆</p><p>not:</p><p>𝟭𝟮 𝘁𝗲𝘀𝘁𝗲𝗿𝘀 + 𝟭𝟰 𝗱𝗮𝘆𝘀 → 𝗴𝘂𝗮𝗿𝗮𝗻𝘁𝗲𝗲𝗱 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝗮𝗽𝗽𝗿𝗼𝘃𝗮𝗹</p><p>I have seen developers become frustrated because they treated the testing requirement as an automatic approval timer.</p><p>It is better to treat the 14 days as evidence-building time.</p><p>𝟵. “𝗠𝗼𝗿𝗲 𝘁𝗲𝘀𝘁𝗶𝗻𝗴 𝗿𝗲𝗾𝘂𝗶𝗿𝗲𝗱” 𝗶𝘀 𝘂𝘀𝗲𝗳𝘂𝗹 𝗳𝗲𝗲𝗱𝗯𝗮𝗰𝗸, 𝗻𝗼𝘁 𝘁𝗵𝗲 𝗲𝗻𝗱 𝗼𝗳 𝘁𝗵𝗲 𝗽𝗿𝗼𝗰𝗲𝘀𝘀</p><p>In real release-support work, we sometimes encounter developers who have completed a closed-testing period but are asked to continue testing.</p><p>That does not necessarily mean every previous day was wasted.</p><p>Instead, review the quality of the test:</p><p>• Were at least 12 testers continuously opted in?</p><p>• Did testers actually use meaningful parts of the app?</p><p>• Was useful feedback collected?</p><p>• Were bugs fixed?</p><p>• Can you explain what changed because of testing?</p><p>• Is the app genuinely ready for public users?</p><p>Google specifically says that additional testing may be required for reasons such as having fewer than 12 opted-in testers or insufficient tester engagement during the testing period.</p><p>The production-access application should therefore reflect a real testing process rather than simply stating that twelve people were recruited.</p><p>𝟭𝟬. 𝗔 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗮𝗹 𝗰𝗵𝗲𝗰𝗸𝗹𝗶𝘀𝘁 𝗯𝗲𝗳𝗼𝗿𝗲 𝗮𝗽𝗽𝗹𝘆𝗶𝗻𝗴</p><p>𝗧𝗲𝘀𝘁𝗲𝗿 𝗿𝗲𝗾𝘂𝗶𝗿𝗲𝗺𝗲𝗻𝘁</p><p>• At least 12 testers are currently opted in.</p><p>• The required testers have remained continuously opted in for the preceding 14 days.</p><p>𝗖𝗼𝗻𝗳𝗶𝗴𝘂𝗿𝗮𝘁𝗶𝗼𝗻</p><p>• Correct closed-testing track</p><p>• Correct tester list or Google Group</p><p>• Correct release available to testers</p><p>• Opt-in link tested using an eligible tester account</p><p>𝗧𝗲𝘀𝘁𝗶𝗻𝗴 𝗾𝘂𝗮𝗹𝗶𝘁𝘆</p><p>• Core flows were tested</p><p>• Bugs were recorded</p><p>• Important issues were fixed</p><p>• Feedback was collected</p><p>• Testers used the app in realistic scenarios</p><p>𝗣𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝗿𝗲𝗮𝗱𝗶𝗻𝗲𝘀𝘀</p><p>• Store listing is ready</p><p>• Policies and permissions have been reviewed</p><p>• Major crashes and blockers are resolved</p><p>• You can clearly explain what you learned during testing</p><p>That final point matters more than it may appear.</p><p>A good closed test should leave you with a clear answer to:</p><p>𝗪𝗵𝗮𝘁 𝗰𝗵𝗮𝗻𝗴𝗲𝗱 𝗯𝗲𝗰𝗮𝘂𝘀𝗲 𝗿𝗲𝗮𝗹 𝗽𝗲𝗼𝗽𝗹𝗲 𝘁𝗲𝘀𝘁𝗲𝗱 𝘁𝗵𝗶𝘀 𝗮𝗽𝗽?</p><p>𝗖𝗼𝗻𝗰𝗹𝘂𝘀𝗶𝗼𝗻</p><p>Google Play’s closed-testing requirement is easy to summarize but easy to execute poorly.</p><p>The safest approach is to stop thinking of it as simply:</p><p>𝗙𝗶𝗻𝗱 𝟭𝟮 𝗽𝗲𝗼𝗽𝗹𝗲 𝗮𝗻𝗱 𝘄𝗮𝗶𝘁 𝟭𝟰 𝗱𝗮𝘆𝘀.</p><p>Instead:</p><p>• Verify that testers actually opt in</p><p>• Verify the Google accounts they use</p><p>• Maintain tester continuity</p><p>• Give testers meaningful workflows</p><p>• Collect useful feedback</p><p>• Fix problems during the test</p><p>• Prepare a production-access application that reflects what really happened</p><p>The requirement is a gate, but the testing itself can still be valuable engineering work.</p><p>𝗢𝗳𝗳𝗶𝗰𝗶𝗮𝗹 𝗿𝗲𝘀𝗼𝘂𝗿𝗰𝗲𝘀</p><p>Google Play Console Help — App testing requirements for new personal developer accounts</p><p><a href="https://support.google.com/googleplay/android-developer/answer/14151465">https://support.google.com/googleplay/android-developer/answer/14151465</a></p><p>Google Play Console Help — Set up an open, closed, or internal test</p><p><a href="https://support.google.com/googleplay/android-developer/answer/9845334">https://support.google.com/googleplay/android-developer/answer/9845334</a></p><p>𝗔𝘂𝘁𝗵𝗼𝗿</p><p>𝗚𝗵𝗮𝗻𝘀𝗵𝘆𝗮𝗺 𝗚𝗮𝗱𝗵𝗶𝘆𝗮 is the CEO of 𝗞𝗲𝘀𝗵𝗮𝘃 𝗜𝗻𝗳𝗼𝘁𝗲𝗰𝗵, a software development company founded in 2008.</p><p>He works with teams building, testing, and releasing mobile applications, including Android apps progressing through Google Play testing and production-readiness workflows.</p><p>𝗗𝗶𝘀𝗰𝗹𝗼𝘀𝘂𝗿𝗲: <a href="https://www.keshavinfotech.com/"><strong>Keshav Infotech</strong></a> operates <a href="https://12realtesters.com/"><strong>12RealTesters</strong></a>, a managed Google Play closed-testing service. This article is educational and separates Google’s official requirements from practical experience and recommendations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e63940624bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/google-play-closed-testing-before-production-access-practical-lessons-for-android-developers-2e63940624bc">Google Play Closed Testing Before Production Access: Practical Lessons for Android Developers</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Episode #39]]></title>
            <link>https://medium.com/kotlinkenya-android254/episode-39-e226a84ba5fe?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/e226a84ba5fe</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 10:06:01 GMT</pubDate>
            <atom:updated>2026-09-01T10:06:01.055Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Know Your Meme</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*GImzAa7l8_PNj2ymFELagg.png" /></figure><h4>Welcome and Bienvenue</h4><p>There is this saying: It is all fun and games... until it becomes all fun and games. Or whatever Plato said. This August, to celebrate Kotlin turning 15, we gave our community members a well-deserved break from their IDEs, hallucinating agents and questionably paced workshops and had, well, fun and games. As they say, take a pic, or it never happened. Here are some..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*a6-c5e0p5AmKJqe1.gif" /></figure><h4>Words with friends and foes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*3zvtcahgJ1InlZmyB4SuTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*x1EAVEFf_Fh1rD1sw48NlA.png" /><figcaption>I have no words. Hence why I lost.</figcaption></figure><h4>Practising Paying Rent</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*le8p_8n5anzYN1SSMcytGw.png" /><figcaption>Legend has it, they are still playing three weeks later</figcaption></figure><h4>Jenga kwa mjengo (this is funny if you understand Swahili)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXJ7fVBf5-XFBJOnO_XN6Q.png" /><figcaption>A good day for an earthquake</figcaption></figure><h4>Connect 4</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*VWkcm-Uu_LU2wPOTl7-kDg.png" /><figcaption>Fun fact, this game almost had people drawing their swords</figcaption></figure><h4>Happy Birthday Kotlin</h4><p>It is not a party without singing Happy Birthday to a programming language and watching it blush and not know what to do with its hands.</p><p>This month, Kotlin turned 15. Since its humble beginnings, it has grown into one of the most widely used languages in the Android ecosystem, with Kotlin now powering 79% of apps on Google Play and appearing in over 70 of Google’s flagship apps.</p><p>And it didn’t stop at Android. Kotlin now supports Multiplatform development through KMP, has become increasingly popular for backend development, and even has its own framework: Ktor.</p><p>Not bad for a language that started life at JetBrains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LdogDbyZP1US3pc53e3nQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*YkEhq0X6Rh0JIcUl7mqQhw.png" /></figure><p>Thanks again to JetBrains for sponsoring this meetup and, more importantly, for building the language we love.</p><h4>September Campus Tour</h4><p>Couldn’t make it to the meetup? Or perhaps you tend not to come because our sessions are usually tailored towards people with a bit more experience?</p><p>Well, we have something for you too.</p><p>On <a href="https://www.meetup.com/android254/events/316178538/?eventOrigin=group_events_list">September 26th</a>, we kick off the first installation of the Kotlin Kenya and Android 254 campus tour.</p><p>We intend to meet younger and aspiring Kotliners and Droids where they are. No deep dives into Dagger or this new Architecture that was discovered when two scientists were throwing apples.</p><p>Just bring your Android Studio-equipped laptop and let’s have a good time.</p><h4>DroidCon x FlutterCon Kenya 2026</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WHIqwlxfSznI-eWO.png" /></figure><p>We are well into the third quarter of the year. Meaning, tickets are going fast. Do you have yours yet? Why not? No, seriously, I’m curious. If you still intend to attend the biggest mobile event in Sub-Saharan Africa, you still have time to procure your ticket. Just <a href="https://droidcon.co.ke/">click here</a> to see more.</p><h4>Call for Sponsors</h4><p>Hello, friend.</p><p>Do you think you could do a little more to support the community? Maybe you have a venue we could use, something you’d like to contribute, or simply a little something that could help us keep things going.</p><p>If you’d like to help, drop us an <a href="/service/mailto:droiddevelopers254@gmail.com">email</a> or contribute directly to our <a href="https://opencollective.com/androidkenya/donate?interval=oneTime&amp;amount=20&amp;name=&amp;legalName=&amp;email=">Open Collective</a>. We’d love to hear from you.</p><h4>Before you go</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*zVDU_4zCc-wl4DDL.gif" /></figure><p>Thinking about speaking at one of our upcoming meetups?</p><p>Got a topic, a project, or an idea you can’t stop talking about? This is your chance to share it with the community. <a href="https://docs.google.com/forms/u/0/d/e/1FAIpQLSeKv4qkSNDINsP7fUk74-2MmmBC4GFv07XjqTkh79v46T8a2w/viewform?pli=1&amp;authuser=0">Submit a talk</a>, or if crowds aren’t your thing, submit an <a href="https://medium.com/kotlinkenya-android254/submission-guidelines-kotlin-kenya-411c9ba359f2">article</a> instead.</p><p>We’re always looking for new voices, fresh perspectives, and people ready to teach (or at least attempt to).</p><h4>See you in September</h4><p>We’re looking forward to seeing you in September. Until then, keep coding… and touch some grass.</p><h3>Credits</h3><h4>1. Writers</h4><ul><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li></ul><h4>2. Organising Team</h4><ul><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li><li><a href="https://x.com/_JeremyGitau">Jeremiah Gitau</a></li><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/mishwainaina">Michelle Wainaina</a></li><li><a href="https://x.com/_kibetheophilus">Theophilus Kibet</a></li><li><a href="https://x.com/Victorvics42">Victor Kirui</a></li></ul><h4>3. Meetup Host</h4><ul><li><a href="https://x.com/DaystarUni">Daystar University</a></li></ul><h4>4. Sponsors and Partners</h4><ul><li><a href="https://www.jetbrains.com/">Jetbrains</a></li></ul><h4>5. The Community Members</h4><ul><li><a href="https://www.meetup.com/android254/">The Community Members [Android254]</a></li><li><a href="https://www.meetup.com/kotlinkenya/">The Community Members [Kotlin Kenya]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e226a84ba5fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/episode-39-e226a84ba5fe">Episode #39</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building slides with Compose Multiplatform]]></title>
            <link>https://medium.com/kotlinkenya-android254/building-slides-with-compose-multiplatform-7e52fc571041?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/7e52fc571041</guid>
            <category><![CDATA[presentations]]></category>
            <category><![CDATA[compose-multiplatform]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[slides]]></category>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 06:49:09 GMT</pubDate>
            <atom:updated>2026-08-27T03:37:50.887Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start with a little story. Last year, I did a talk at Devfest Nairobi. I used their ready-made slides template on Google Slides. I remember preparing the slides as a long, 5-hour session of screenshotting my IDE, recording demos, drag-and-drop, and tears. None of which I do on my day-to-day, btw. Except for the tears thing. That is an every Tuesday thing. All that, just to have my PC break down before the session, and for me to borrow someone’s PC (and they didn’t have Android Studio)</p><p>Fast forward a week later at Droidcon. I was at <a href="https://www.sinasamaki.com/">Sinasamaki’s</a> session on building delightful UI with Compose. I realised something. His slides were interactive. They seemed to have been a lot of fun to build. I went home saying, “I am going to have fun building my slides, or my name is Stacy”.</p><p>So enters <strong>Ski</strong>. My Compose Multiplatform slides toolkit.</p><p>My mission was simple. Build something that would:</p><ol><li>Make Compose demos as simple as writing Compose code and rendering them on the slides.</li><li>Drop in code snippets without having to crop, blur, drag and drop, with the hope a refresh will not dislocate the image.</li><li>Easily highlight and fold said snippets.</li><li>Not have to run my IDE to open the demo or slides i.e the presentation should be self-contained.</li></ol><h4>Problem scoping</h4><p>Before building it, I asked a few Compose developers what would actually make a presentation tool useful to them.:</p><ol><li>“I would like to see speaker notes so I don’t have to look at my notebook constantly”</li><li>“Animations would make me move”</li></ol><p>The goal became clearer: build something where my only worry was the content. The look, feel, and building experience should be as easy as ‘Hello world’.</p><h4>From pain points to “So here’s the plan”</h4><p>The feedback gave me a pretty clear idea of what <strong>Ski</strong> needed to do.</p><p>At the bare minimum, I wanted reusable components that could animate, a simple way to place them on a slide, and smooth transitions between slides. Those were non-negotiable.</p><p>Then there were the things that would make presenting nicer: speaker notes, a table of contents, shortcuts, and components that could temporarily take focus without everything else on the screen competing for attention.</p><p>And then there was the fun stuff.</p><p>I wanted themes I could toggle at runtime. I wanted the presenter view to be useful without becoming another thing I had to babysit. And, obviously, I wanted the slides to look good. If we’re going to stand in front of a room and make people watch a presentation, we might as well put on a show.</p><p>This is where Compose started looking like a rather obvious choice.</p><p>Animations, theming, and declarative UI are already part of the Compose toolbox. More importantly, the thing I was trying to build was essentially a collection of composables with some presentation-specific behaviour wrapped around them.</p><p>So instead of building a tool that <em>produces</em> slides, I could build a tool where <strong>the slides themselves are Compose UI</strong>.</p><p>And that’s essentially what Ski became.</p><p>Here is what came out of that idea.</p><h4><strong>1. A slides navigation DSL</strong></h4><p>Taking inspiration from Navigation 3, I implemented a DSL for how slides are declared inside the deck. For purposes of not wanting to turn into a clipboard, here is a short snippet of how a slide would look.</p><pre>slide(&quot;Example Screen&quot;) {<br>    ExampleSlide()<br>}</pre><p>This is an example of how a slide is declared. No columns or rows that you have to maintain. You bring the plate; Ski handles the kitchen.</p><h4>2. Dynamically animated slides</h4><p>A presenter should be able to define how they want their slides to show up on screen. Does it just show up, slide, fade, fly? Whatever the presenter wants, they get. Since a slide is just Compose UI, transitions can be treated as another property of the slide rather than something I have to bake into an exported image.</p><pre>@Serializable<br>sealed interface ScreenTransition</pre><pre>fun DeckNavigator.contentTransform(): ContentTransform {<br>    val duration = 500<br>    return when (this.currentSlide.transition) {<br><br>        ScreenTransition.None -&gt;...<br><br>        ScreenTransition.Fade -&gt;...<br><br>        ScreenTransition.Horizontal -&gt;...<br><br>        ScreenTransition.Vertical -&gt;...<br>    }<br>}</pre><p>With theScreenTransition API, the presenter can define their own transition and how it is implemented in .contentTransform() which can then be applied on an individual slide like so:</p><pre>slide(<br>    &quot;Introduction&quot;,<br>    transition = ScreenTransition.Fade,<br>) {<br>    IntroductionScreen()<br>}</pre><h4>3. Multiple panels</h4><p>Ski best works on Desktop (JVM) and Web. It does so by launching 2 windows and tabs respectively. One being the actual slide deck and the other being the presenter deck.</p><p>The presenter deck is where Ski starts feeling less like a slide renderer and more like an actual presentation application.</p><p><strong>a) Notes</strong>: Easily toggleable by tapping the “N” key on your keyboard. Notes (per slide) are a list of Annotated Strings, which means you can style them with Bold, Italics, Underline, or whatever your heart so wishes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*vyd-8EONeEdYrHc6Zkaw2A.png" /><figcaption>Notes component showing the joke you wrote for yourself</figcaption></figure><p><strong>b) Table of content: </strong>Easily togglable by tapping the “T” key. This is a list of slides available in your deck. Tapping either of the items navigates <strong>both panels </strong>to the selected slide. Note, navigating with the arrow keys to the next or previous slide reflets on both panels as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*tdM0PRgmQZIJ0YWVhBJNKA.png" /><figcaption>Table of content; which answers the question, “where did I leave my keys</figcaption></figure><p><strong>c) Timer: </strong>This component is persistent in the presenter’s slide. It lets you know how much time you have left in your presentation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*UOY3SkVPacjktca-u8RADA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*qxMzCPucTRtljP4hK-I9Bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*_xlk9hukLES2lJY7xONtgA.png" /><figcaption>Timer next to the footer. For us, professional yappers</figcaption></figure><p><strong>d) Shortcuts: </strong>In case remembering all these key shortcuts is a hassle, no bother, only remember “C”. It toggles the Shortcuts guide which holds a dictionary for all of them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*kUowiVckoGNSJAAynhhPEA.png" /><figcaption>The key shortcuts panel. Another way to remember where you left your keys.</figcaption></figure><p><strong>c. A Toggleable Theme: </strong>And because both panels are Compose UI, each one can own its own theme. You can toggle light or dark theme by tapping the “D” key, or by tapping the UP arrow and then the theme button on either panel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfPGeySZ-bX_n2ntHPPO3A.png" /><figcaption>Top bar on your slides/presentation deck</figcaption></figure><h3>4. A suite of reusable components</h3><p>In the codebase, navigating to :shared:components will give you access to a suite of animated, themed, simple components that you can use to demo your work. Because the slides and demos are Compose UI, Ski also became a convenient place to build reusable components for presentations.</p><p>Here is the <a href="https://adaptive-compose.vercel.app/?slides">component gallery</a> showcasing what Ski has to offer.</p><p>I built Ski because I wanted to paint a picture for my audience using a paintbrush I am more used to wielding. Three presentations later, it is still the workflow I want.</p><p>If you want to try it, use it, fork it, or tell me what I got wrong, <a href="https://github.com/donald-okara/ski">here is the repo</a>. It might just make your next presentation a little better too.</p><p>And if you want to see Ski in action, <a href="https://chatgpt.com/c/6a7ac82c-43bc-83ea-882c-da2d7187793d#">here is the last presentation I built with it</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e52fc571041" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/building-slides-with-compose-multiplatform-7e52fc571041">Building slides with Compose Multiplatform</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Episode #38]]></title>
            <link>https://medium.com/kotlinkenya-android254/episode-38-5f7dcbf4cf4d?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f7dcbf4cf4d</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 05:01:02 GMT</pubDate>
            <atom:updated>2026-08-03T05:01:02.134Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Know your meme</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*2EQEevpgFDz9v5rm" /></figure><h4>Welcome and Bienvenue</h4><p>Hello friend. How was your July? Did you invest in sweaters as discussed last month? Did you expand your horizons? Perhaps visited an office you hadn’t been to before? If you came to the last meetup, you already have one of those covered (unless you work there). Okay, enough with the cryptic welcome address.</p><p>This July, the Kotliners convened at the offices of Terra Softworks Ltd. We had a few new faces and a lot of familiar ones. We talked product, engineering, users, and everything in between. But instead of me trying to summarise it all, why not just show you?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*Moa02oqKwl7UnOCb.gif" /></figure><h4>Welcome Address: <a href="https://www.linkedin.com/in/martin-nyaga-a04b5a71/">Martin Nyaga</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XXQP8gk_RQNdKDJgS_sKw.png" /><figcaption><a href="https://www.linkedin.com/in/martin-nyaga-a04b5a71/">Martin</a> explaining why every startup begins with “Hear me out…”</figcaption></figure><p>To acknowledge that we had not crashed into an office space unannounced, the CTO of Terra Softworks Ltd, Martin Nyaga, left a recorded message welcoming us to the house he co-built. He gave an inspiring call to action to build, ship, and iterate with intent.</p><h4><strong>Chronos under the Hood — </strong><a href="https://x.com/fbiego_"><strong>Felix Biego</strong></a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1agsA6WzESmDAUAVbHUyg.png" /><figcaption><a href="https://x.com/fbiego_">Felix</a>, moments after saying his watch sometimes tiktoks</figcaption></figure><p>Ever wondered how your favourite smartwatch companion app works under the hood? How does your watch talk to your phone and exchange everything from wallpapers to health data? Then I hope you did not miss Felix’s session as he dove into how the Chronos app pushes BLE technology to its limits.</p><h4><strong>Panel Discussion: Beyond the Code — Building Products That Users Love: </strong><a href="https://x.com/valentinerutto"><strong>Valentine Rutto</strong></a><strong>, </strong><a href="https://x.com/AnnieKobia"><strong>Annunziata Kinya</strong></a><strong> &amp;&amp; </strong><a href="https://x.com/muriuki_collin"><strong>Collins Muriuki</strong></a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aV10j2f1j1T9Nk7Nw_othg.png" /><figcaption>The joke is <a href="https://x.com/don_okara">Don</a> actually works at Terra and this question made them question their hiring decisions 👀</figcaption></figure><p>Quick question: how many products do you currently have in production? Have you iterated on user feedback? Ever wondered how industry leaders do it at scale? This panel had plenty of differing opinions, but everyone agreed on one thing: build for users first. We talked about deciding which features deserve attention, which bugs deserve urgency, and why becoming a product engineer often matters more than becoming just a good engineer<strong>. </strong>Also, that some clients are worth firing 👀👀.</p><h3><strong>Thank You Terra</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CXvlI0uvureUB-8wdsLUVQ.jpeg" /><figcaption>Siri, play Amapiano jazz mix.</figcaption></figure><p>Not only did Terra host us, provide snacks, and generally make us feel at home, their CEO also jumped onto the panel to share his perspective on building products that matter.</p><p>If you haven’t come across Terra Softworks before, they’re doing some genuinely interesting work with NFC and GPS to solve real-world problems, particularly in education across Sub-Saharan Africa. Give them a follow on Instagram <em>(insert link)</em> or LinkedIn <em>(insert link)</em> and see what they’ve been building.</p><h3>JetBrains says Hello</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*bvanC286de4uiE_r.png" /></figure><p>Our good friends at JetBrains, the creators of Kotlin, once again sent their support (and gifts 👀) to the community. No, unfortunately they didn’t send free IntelliJ Ultimate licenses for everyone.</p><p>From active community members to regular speakers, it’s always good to see contributors being recognised by the wider Kotlin ecosystem.</p><h3>DroidCon x FlutterCon Kenya 2026</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bM80tjaAa8EzZZMa.png" /></figure><p>We are well into the third quarter of the year. Meaning, tickets are going fast. Do you have yours yet? Why not? No seriously, I’m curious. If you still intend on attending the biggest mobile event in Subsaharan Africa, you still have time to procure your ticket. Just <a href="https://droidcon.co.ke/">click here</a> to see more.</p><h3>Before you go</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*r1WCeDh8naNNPDHH.gif" /></figure><p>Thinking about speaking at one of our upcoming meetups?</p><p>Got a topic, a project, or an idea you can’t stop talking about? This is your chance to share it with the community. <a href="https://docs.google.com/forms/u/0/d/e/1FAIpQLSeKv4qkSNDINsP7fUk74-2MmmBC4GFv07XjqTkh79v46T8a2w/viewform?pli=1&amp;authuser=0">Submit a talk</a>, or if crowds aren’t your thing, submit an <a href="https://medium.com/kotlinkenya-android254/submission-guidelines-kotlin-kenya-411c9ba359f2">article</a> instead.</p><p>We’re always looking for new voices, fresh perspectives, and people ready to teach (or at least attempt to).</p><h3>See you in August</h3><p>We’re looking forward to seeing you in August. Until then, keep coding… and fire some clients.</p><h3>Credits</h3><ul><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li></ul><h3>2. Speakers</h3><ul><li><a href="https://x.com/fbiego_">Felix Biego</a></li><li><a href="https://www.linkedin.com/in/martin-nyaga-a04b5a71/">Martin Nyaga</a></li></ul><h4>2.b Panellists</h4><ul><li><a href="https://x.com/AnnieKobia">Annunziata Kinya</a></li><li><a href="https://x.com/valentinerutto">Valentine Rutto</a></li><li><a href="https://x.com/muriuki_collin">Collins Muriuki</a></li><li><a href="https://x.com/don_okara">Donald Isoe </a>[Moderator]</li></ul><h3>3. Organising Team</h3><ul><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li><li><a href="https://x.com/mishwainaina">Michelle Wainaina</a></li><li><a href="https://x.com/_JeremyGitau">Jeremiah Gitau</a></li><li><a href="https://x.com/_kibetheophilus">Theophilus Kibet</a></li><li><a href="https://x.com/Victorvics42">Victor Kirui</a></li><li><a href="https://www.linkedin.com/in/donald-isoe-a21310255/">Donald Isoe</a></li></ul><h3>4. Meetup Host</h3><ul><li><a href="https://terrasofthq.com/#/">Terra Softworks LTD</a></li></ul><h3>5. Sponsors and Partners</h3><ul><li><a href="https://www.jetbrains.com/">Jetbrains</a></li><li><a href="https://terrasofthq.com/#/">Terra Softworks LTD</a></li></ul><h3>7. The Community Members</h3><ul><li><a href="https://www.meetup.com/android254/">The Community Members [Android254]</a></li><li><a href="https://www.meetup.com/kotlinkenya/">The Community Members [Kotlin Kenya]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f7dcbf4cf4d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/episode-38-5f7dcbf4cf4d">Episode #38</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Episode 37]]></title>
            <link>https://medium.com/kotlinkenya-android254/episode-37-7d99eab34435?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/7d99eab34435</guid>
            <category><![CDATA[events]]></category>
            <category><![CDATA[meetup]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 09:01:02 GMT</pubDate>
            <atom:updated>2026-07-01T09:01:02.647Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Know your meme</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKc0q_1h7nr6n2hbSD-DvA.jpeg" /></figure><p><strong>Welcome and Bienvenue</strong></p><p>We are now entering sweater weather here in the big 254, and sure enough, we did something cool this month. We had our monthly meetup. (Pause for applause).</p><p>The Kotliners met once more at Daystar University, learned what&#39;s new in the Kotlin ecosystem, saw how to best architect our apps and more. Catch all this on… Episode #37 of the Kotlin Kenya Newsletter 🎊</p><p>Couldn’t make it? Here’s the five-minute version of what you missed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*5Orvq0r6nyJflUUL.gif" /></figure><h4>Kotlin Conf 26 Recap: <a href="https://x.com/wangerekaharun">Harun Wangereka</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a94YjZyHrWYv2jzwXjY5wA.png" /><figcaption>Harun guiding the group on using agents for design</figcaption></figure><p>Did you miss the annual Kotlin conference held in Munich this past May? Well, I hope you didn’t miss this past meetup, as <a href="https://x.com/wangerekaharun">Harun</a> walked us through everything the JetBrains team announced at the swanky conf. We learned about new changes coming with Kotlin 2.4 and Kotlin Multiplatform, and we touched grass and looked at something beautiful to forget that AI is about to take our jobs. Just kidding (I wish).</p><h4>Who Owns This Code: <a href="https://www.linkedin.com/in/eric-wafula/">Eric Wathome</a> and <a href="https://x.com/mambo_bryan">Senior Dishwasher GDE</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ziXP-e4dzvf3jI9m_9obg.png" /><figcaption>Eric and Mambo setting up the repo</figcaption></figure><p>Ever wondered, “What does the domain layer actually do?” Does creating a multimodular app seem too daunting a task? Are you still sceptical about letting AI handle some of your tasks? Is this even your real phone number? Well, <a href="https://www.linkedin.com/in/eric-wafula/">Safaricom’s Senior Intern</a> and the <a href="https://x.com/mambo_bryan">Senior Dishwasher GDE</a> led us through systems design in Android, who owns what in Clean Architecture, and how to use AI responsibly. They used the Rick and Morty API for their demo, and let’s say it got schwifty 😁.</p><h4>JetBrains says Hello</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9oUXfjGkNnFlsurp.png" /></figure><p>Our good friends at JetBrains, the creators of Kotlin, sent their support (and gifts 👀) to the community.</p><p>From active community members to regular speakers, it’s always good to see contributors being recognised by the wider Kotlin ecosystem.</p><h4>DroidCon x FlutterCon Kenya 2026</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzxAq8ia_J3LxERaILNqow.png" /></figure><p>The most anticipated event of the year is getting closer every month. The question is, do you have a ticket? Do you want to present something? Maybe sponsor the event this year? No, seriously, is this even your real phone number?</p><p>Do not be the one Kotliner in Africa to miss out. See more on <a href="https://droidcon.co.ke/">their page</a>.</p><h4>Before you go</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*ffUhv1p8kkquSdFp.gif" /></figure><p>Thinking about speaking at one of our upcoming meetups?</p><p>Got a topic, a project, or an idea you can’t stop talking about? This is your chance to share it with the community. <a href="https://docs.google.com/forms/u/0/d/e/1FAIpQLSeKv4qkSNDINsP7fUk74-2MmmBC4GFv07XjqTkh79v46T8a2w/viewform?pli=1&amp;authuser=0">Submit a talk</a>, or if you are afraid of crowds, or writing is more your style, submit an <a href="https://medium.com/kotlinkenya-android254/submission-guidelines-kotlin-kenya-411c9ba359f2">article</a>.</p><p>We’re always looking for new voices, fresh perspectives, and people ready to teach (or at least attempt to).</p><h4>See you in July</h4><p>We’re looking forward to seeing you in July. Until then, keep coding… and keep warm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*qiDzrQvNacXn84rA.gif" /></figure><h3>Credits</h3><ul><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li></ul><h3>2. Speakers</h3><ul><li><a href="https://x.com/wangerekaharun">Harun Wangereka</a></li><li><a href="https://x.com/mambo_bryan">Senior Dishwasher GDE</a></li><li><a href="https://www.linkedin.com/in/eric-wafula/">Eric Wathome</a></li></ul><h3>3. Organising Team</h3><ul><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li><li><a href="https://x.com/mishwainaina">Michelle Wainaina</a></li><li><a href="https://x.com/_JeremyGitau">Jeremiah Gitau</a></li><li><a href="https://x.com/_kibetheophilus">Theophilus Kibet</a></li><li><a href="https://x.com/Victorvics42">Victor Kirui</a></li><li><a href="https://www.linkedin.com/in/donald-isoe-a21310255/">Donald Isoe</a></li></ul><h3>4. Meetup Host</h3><ul><li><a href="https://x.com/DaystarUni">Daystar University</a></li></ul><h3>5. Sponsors and Partners</h3><ul><li><a href="https://www.jetbrains.com/">Jetbrains</a></li></ul><h3>7. The Community Members</h3><ul><li><a href="https://www.meetup.com/android254/">The Community Members [Android254]</a></li><li><a href="https://www.meetup.com/kotlinkenya/">The Community Members [Kotlin Kenya]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d99eab34435" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/episode-37-7d99eab34435">Episode 37</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State Management in Jetpack Compose]]></title>
            <link>https://medium.com/kotlinkenya-android254/state-management-in-jetpack-compose-c412335738af?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/c412335738af</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[state]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Angela Nyabuti]]></dc:creator>
            <pubDate>Sun, 03 May 2026 15:32:09 GMT</pubDate>
            <atom:updated>2026-05-03T15:34:46.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCxErdeZwNy5ghiN6gkzvQ.jpeg" /><figcaption><a href="https://www.freepik.com/free-vector/smartphone-plants-marketing-mobile-phone-concept_6747253.htm">Image by freepik</a></figcaption></figure><p>In modern Android development, Jetpack Compose introduces a declarative approach to building UI. Instead of manually updating the views, the UI reacts automatically to state changes.</p><p>In this article, we will explore how to manage state in a Compose application and how to update your UI when this state changes.</p><p>A state is any value that can change over time and determines what is shown to the UI at a certain time.</p><p>The state changes when responding to an event. An event is an input generated from outside or inside the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*6DqAOAx-YnVkG-H2KsNREA.png" /><figcaption>Source: <a href="https://developer.android.com/codelabs/jetpack-compose-state#3">Official Documentation</a></figcaption></figure><h4>State Driven UI</h4><p>In Compose, the visibility of a UI element does not change when state changes, instead, the UI is described how it will appear under specific conditions of state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*BFhcZ-GiBhuoGtYzREaGQg.png" /><figcaption>Source: <a href="https://developer.android.com/codelabs/jetpack-compose-state#5">Official Documentation</a></figcaption></figure><h4>Recomposition</h4><p>This is the process of recreating the UI based on new values. In Compose, when you need to update the UI, you call the same composable with new arguments.</p><h4>MutableState&lt;T&gt;</h4><p>This is an observable type integrated into the Compose runtime. When state changes occur, it notifies Compose, and then the recomposition takes place.</p><h4>MutableStateOf()</h4><p>This is a Compose function used to create an object of mutableState.</p><p>There are two ways to create an object of MutableState:</p><pre>var topic by remember { mutableStateOf(&quot;&quot;) }<br>val topicState = remember { mutableStateOf(&quot;&quot;) }</pre><h4>Remember in Compose</h4><p>Remember is a function that stores objects in a composition. After recomposition, the state variables are reinitialized to their default values. Remember is used to preserve the state across recompositions. It is typically used with mutableStateOf.</p><h4>RememberSaveable</h4><p>At times, Android devices might change configurations when using an app. This can be orientation, or a change from light mode to dark mode. When such changes occur, resources are reloaded for the new configuration.</p><p>As much as remember saves the state across recomposition, the state will be lost when a configuration change occurs.</p><p>RememberSaveable is used to save state across a recomposition.</p><pre>var topic by rememberSaveable { mutableStateOf(&quot;&quot;) }</pre><p>The code below is a Jetpack Compose screen that lets a user type a topic, generate flashcards, and shows how state can be managed:</p><pre>import androidx.compose.runtime.remember<br><br>@Composable<br>fun InputScreen(navController: NavController, viewModel: FlashcardViewModel) {<br><br>    /**<br>     * State management<br>     * Topic stores what the user types<br>     * mutableStateOf(&quot;&quot;) - Used to create a mutable state object.<br>     * */<br>    var topic by remember { mutableStateOf(&quot;&quot;) }<br><br>    Column(<br>        modifier = Modifier<br>            .fillMaxSize()<br>            .padding(16.dp),<br>        verticalArrangement = Arrangement.Center,<br>        horizontalAlignment = Alignment.CenterHorizontally<br>    ) {<br><br>        //Title text<br>        Text(&quot;What topic do you want to study?&quot;, style = MaterialTheme.typography.headlineMedium)<br>        Spacer(modifier = Modifier.height(16.dp))<br>        //Input Field<br>        OutlinedTextField(<br>            value = topic, //Shows the current text<br>            onValueChange = { topic = it }, //Updates the topic when the user types<br>            label = { Text(&quot;Enter a topic (e.g., &#39;The Roman Empire&#39;)&quot;) },<br>            modifier = Modifier.fillMaxWidth(),<br>            enabled = uiState !is FlashcardUiState.Loading<br>        )<br>        Spacer(modifier = Modifier.height(24.dp))<br>        Button(<br>            onClick = { viewModel.generateFlashcards(topic) },<br>            enabled = topic.isNotBlank() &amp;&amp; uiState !is FlashcardUiState.Loading<br>        ) {<br>            Text(&quot;Generate Flashcards&quot;)<br>        }<br><br>    }<br>}</pre><h4>State Hoisting</h4><p>State hoisting is the pattern of moving state to a composable’s caller to make a composable stateless</p><p>A composable uses remember to store an object that contains an internal state, which makes the composable stateful.</p><p>Composables that do not hold any state are stateless. State hoisting is used to create a stateless composable.</p><p>The pattern of state hoisting is to replace the state variable with two parameters:</p><ul><li>value: T — This is the current value to be displayed.</li><li>onValueChange:(T)-&gt;Unit — An event that updates the value, with T being the new value.</li></ul><p>State hoisting is important in the following ways:</p><ol><li>Single source of truth — By moving state instead of duplicating it, we are ensuring there is only one source of truth. This helps to avoid bugs.</li><li>Shareable — The hoisted state can be shared with multiple composables.</li><li>Interceptable — Callers to the stateless composables can decide to ignore or modify events before changing the state.</li><li>Decoupled — The state of a stateless Composable can be stored anywhere</li></ol><p><strong>Stateful vs Stateless Composable</strong></p><ul><li><strong>Stateless Composable</strong> — When a composable isstateless, all state can be extracted from the composable function. It does not hold any state. It makes the user interface more reusable.</li><li><strong>Stateful Composable</strong> — A composable that holds state and can change anytime. It manages its own state using remember or rememberSaveable. It is easier to use but less reusable.</li></ul><p>This is how state hoisting can be done in the code we had above. Remember has been removed and state is being passed in.</p><pre>@Composable<br>//Removing remember and passing state in<br>fun InputScreen(<br>    topic: String,<br>    onTopicChange: (String) -&gt; Unit,<br>    onGenerateClick: () -&gt; Unit,<br>    isLoading: Boolean<br>) {<br>    /**<br>     * This handles the UI<br>     * It is a stateless UI component and it only displays the data it receives.<br>     * */<br><br>    Column(<br>        modifier = Modifier<br>            .fillMaxSize()<br>            .padding(16.dp),<br>        verticalArrangement = Arrangement.Center,<br>        horizontalAlignment = Alignment.CenterHorizontally<br>    ) {<br><br>        Text(<br>            &quot;What topic do you want to study?&quot;,<br>            style = MaterialTheme.typography.headlineMedium<br>        )<br><br>        Spacer(modifier = Modifier.height(16.dp))<br><br>        OutlinedTextField(<br>            value = topic,<br>            onValueChange = onTopicChange,<br>            label = { Text(&quot;Enter a topic (e.g., &#39;The Roman Empire&#39;)&quot;) },<br>            modifier = Modifier.fillMaxWidth(),<br>            enabled = !isLoading<br>        )<br><br>        Spacer(modifier = Modifier.height(24.dp))<br><br>        Button(<br>            onClick = onGenerateClick,<br>            enabled = topic.isNotBlank() &amp;&amp; !isLoading<br>        ) {<br>            Text(&quot;Generate Flashcards&quot;)<br>        }<br>    }<br>}</pre><p>The state is then moved up to a parent composable or a viewModel. This makes the input screen reusable.</p><pre>@Composable<br>fun InputScreenContainer(viewModel: FlashcardViewModel) {<br><br>    /**<br>     * This handles the state and logic of the input screen.<br>     * This is the parent controller<br>     * */<br><br>    var topic by remember { mutableStateOf(&quot;&quot;) }<br>    //Gets the state of the app, whether it is loading, success or error<br>    val uiState by viewModel.uiState.collectAsState()<br><br>    //Passing everything to the UI<br>    InputScreen(<br>        topic = topic,<br>        onTopicChange = { topic = it },<br>        onGenerateClick = { viewModel.generateFlashcards(topic) },<br>        isLoading = uiState is FlashcardUiState.Loading<br>    )<br>}</pre><p>State Management is important for building responsive and dynamic user interfaces in Jetpack Compose. By understanding how state works, developers can create scalable, maintainable, and testable applications.</p><p>Happy Coding!</p><p>For further reading:</p><ol><li><a href="https://developer.android.com/codelabs/jetpack-compose-state#0">State in Jetpack Compose.</a></li><li><a href="https://www.kodeco.com/android/paths/multiscreen-app/44884534-state-management-in-jetpack-compose">State Management in Jetpack Compose</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c412335738af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/state-management-in-jetpack-compose-c412335738af">State Management in Jetpack Compose</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Episode #36]]></title>
            <link>https://medium.com/kotlinkenya-android254/episode-36-45ae3847afe7?source=rss----b47574fd6849---4</link>
            <guid isPermaLink="false">https://medium.com/p/45ae3847afe7</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Donald Isoe]]></dc:creator>
            <pubDate>Fri, 01 May 2026 07:38:38 GMT</pubDate>
            <atom:updated>2026-05-01T07:38:38.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XffSmSGXs-ZKlBl9j_c2uw.png" /></figure><h4>Know your meme 🤣</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*gE1lLPQ_I3XnzP-w7YWscQ.jpeg" /></figure><p><strong>Welcome and Bienvenue</strong></p><p>April was a (somewhat) eventful month. Not only were a few people pranked at the beginning (just me?), but your favourite monthly tech event was also held.</p><p>The Kotlin lovers gathered once more at Daystar University. Learned how to best use AI as a coworker, build secure apps, and avoid common pitfalls when rolling out new features. Catch this and more on…. Episode #36 of the Kotlin Kenya Newsletter 🎊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*xy451gy4p7gZdodg.gif" /></figure><h4>KotLabs: Building MCP in Kotlin — Servers, Clients &amp; Tool-Calling Systems: Jeremy Gitau</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IySPrlWuDitAPl2ZpQ464Q.png" /><figcaption>Jeremy trying to talk down AI from firing everyone</figcaption></figure><p>Do you ever wish that your AI coding assistant knew more about your project so you wouldn’t have to copy and paste everything not in the project folder? Or that they tailored the solutions to your problem with minimal guessing. Well, Jeremy’s session explored how Kotlin can power smarter AI workflows, from tool-calling systems to project-aware assistants. Go through his <a href="https://x.com/_JeremyGitau">presentation</a> to learn more.</p><h4>SSL Pinning in Android: Securing Mobile Apps Against MITM Attacks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CAYu2cfkt2XEBgQXc27cQ.png" /><figcaption>Ian attempting to convince the room he is not a hacker.</figcaption></figure><p>Have you ever wanted to know more about securing your app beyond just hiding your API keys? Then I hope you caught <a href="https://x.com/Ianooh_">Ian’s</a> session, where he covered cryptography. We dove under the hood of SSL pinning and explored how to keep apps secure even in production environments. In case you missed it, or even if you caught it and still want to learn more, <a href="https://medium.com/kotlinkenya-android254/android-security-practical-guide-93f6128aee9a">read his article</a> where he dives deeper into this.</p><h4>Shipping apps in the real world: Mambo Brian, Eric Muuo, Eric Wafula</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LY8LGOtNEc9oXt_dsIsR9A.png" /><figcaption>Mambo Brian shortly before pitching the band name “Mambo and the Erics”</figcaption></figure><p>Following the backlash around a certain major tech rollout this month, the timing for this discussion could not have been better.. <a href="https://x.com/mambo_bryan">Mambo Brian</a> led a riveting panel discussion on what it actually means to ship products in the real world. Alongside <a href="https://www.linkedin.com/in/eric-wafula/">Eric Wafula</a>, Senior Android Engineer at Safaricom, and <a href="https://www.linkedin.com/in/erickmuuo/">Eric Muuo</a>, Tech Lead at Open Crafts Interactive, we explored rollouts, common pitfalls, and the balancing act of keeping as many users happy as possible. To some extent.</p><h3>JetBrains says Hello</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*5CJzsPZgaBlVFm7u.png" /></figure><p>Our good friends at JetBrains, the creators of Kotlin, sent their support (and gifts 👀) to the community.</p><p>From active community members to regular speakers, it’s always good to see contributors being recognised by the wider Kotlin ecosystem.</p><h3>DroidCon x FlutterCon Kenya 2026</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SSbE1Ku4EMVtkjhX.png" /></figure><p>DroidCon x FlutterCon Kenya 2026 is getting closer. November may feel far, but tickets are already moving.<br> And if attending is not enough, why not <a href="https://bit.ly/dckeCFP26">submit a session</a>? We’d love to hear more from the community.</p><h3>Before you go</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*D9waQdN6ssdnlH4Y.gif" /></figure><p>Thinking about speaking at one of our upcoming meetups?</p><p>Got a topic, a project, or an idea you can’t stop talking about? This is your chance to share it with the community. <a href="https://docs.google.com/forms/u/0/d/e/1FAIpQLSeKv4qkSNDINsP7fUk74-2MmmBC4GFv07XjqTkh79v46T8a2w/viewform?pli=1&amp;authuser=0">Submit a talk</a>, or if you are afraid of crowds, or writing is more your style, submit an <a href="https://medium.com/kotlinkenya-android254/submission-guidelines-kotlin-kenya-411c9ba359f2">article</a>.</p><p>We’re always looking for new voices, fresh perspectives, and people ready to teach (or at least attempt to).</p><h3>Until May</h3><p>April ends, and so does the last opportunity to prank your loved ones. As you make a few faces, angry and impressed simultaneously, why not spread some knowledge as well?</p><p>The best way to do that? Get involved. Submit a talk or article, invite a friend (or three), or just show up to the meetups; it all counts.</p><p>We’re looking forward to seeing you in May. Until then, keep coding… and buy an umbrella.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*o5I3DzzlYqbPC0zU.gif" /></figure><h3>Credits</h3><ul><li><a href="https://x.com/don_okara">Donald Isoe</a></li><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li></ul><h3>2. Speakers</h3><ul><li><a href="https://x.com/_JeremyGitau">Jeremy Gitau</a></li><li><a href="https://x.com/Ianooh_">Ian Mutuku</a></li><li><a href="http://x.com/mambo_bryan">Mambo Bryan</a></li><li><a href="https://www.linkedin.com/in/erickmuuo/">Eric Muuo</a></li><li><a href="https://www.linkedin.com/in/eric-wafula/">Eric Wafula</a></li></ul><h3>3. Organising Team</h3><ul><li><a href="https://x.com/emmanuelmuturia">Emmanuel Muturia™</a></li><li><a href="https://x.com/mishwainaina">Michelle Wainaina</a></li><li><a href="https://x.com/_JeremyGitau">Jeremiah Gitau</a></li><li><a href="https://x.com/_kibetheophilus">Theophilus Kibet</a></li><li><a href="https://x.com/Victorvics42">Victor Kirui</a></li></ul><h3>4. Meetup Host</h3><ul><li><a href="https://x.com/DaystarUni">Daystar University</a></li></ul><h3>5. Sponsors and Partners</h3><ul><li><a href="https://www.jetbrains.com/">Jetbrains</a></li></ul><h3>7. The Community Members</h3><ul><li><a href="https://www.meetup.com/android254/">The Community Members [Android254]</a></li><li><a href="https://www.meetup.com/kotlinkenya/">The Community Members [Kotlin Kenya]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45ae3847afe7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kotlinkenya-android254/episode-36-45ae3847afe7">Episode #36</a> was originally published in <a href="https://medium.com/kotlinkenya-android254">KotlinKenya &amp; Android254</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>