https://kotlinlang.org logo
Join Slack
Powered by
# android
  • r

    Ravi

    09/27/2025, 3:40 AM
    Hello Team!
    πŸ‘‹ 3
  • b

    Behzod

    09/29/2025, 5:29 AM
    Hi, folks! I just published a new article: Inside Android: From Zygote to Binder. In this post, I explain how Android processes are created and communicate with each other β€” starting from the Zygote process to the Binder IPC mechanism. Hope it would be helpful! https://medium.com/proandroiddev/inside-android-from-zygote-to-binder-4ccafe1267a3
    not kotlin but kotlin colored 3
    πŸ‘ 2
    K 3
    🚫 1
    c
    d
    • 3
    • 2
  • d

    Dequency Yates

    09/29/2025, 4:15 PM
    Hey guys!
    πŸ‘‹ 3
    πŸ‘‹πŸΎ 1
    🚫 1
  • p

    Plugguto

    10/01/2025, 7:23 PM
    πŸ‘‹ Hello, team!
    not kotlin but kotlin colored 1
    πŸ‘‹ 1
    🚫 1
  • g

    Greg Williams

    10/02/2025, 1:38 AM
    If you're worried about the upcoming Android developer verification by Google, there is a lot of FUD and misinformation out there -- don't believe it. Here's the real scoop.

    https://youtu.be/A7DEhW-mjdcβ–Ύ

    not kotlin but kotlin colored 4
    πŸ‘€ 1
    πŸ’© 3
    d
    g
    b
    • 4
    • 34
  • d

    Danail Boyukliev

    10/02/2025, 6:43 AM
    Hi guys! If a link that redirects to a link triggering deeplink is being sent in email and user clicks on the link, we notice that with the latest version of Gmail if
    Open web links in Gmail
    is enabled, the deeplink would not be triggered. If tested on an emulator with Gmail running older version of Gmail, it works even if
    Open web links in Gmail
    is enabled. Does anybody knows if there's been change in Gmail for this feature?
    not kotlin but kotlin colored 3
    c
    • 2
    • 2
  • b

    bazbo.222

    10/04/2025, 4:15 PM
    Hi, hello everyone! So, I'm following this book from 2023 on making apps in jetpack compose, and, taking the code from the book's official github repo, the following code works:
    Copy code
    fun Modifier.drawYellowCross() = then(
        object : DrawModifier {
            override fun ContentDrawScope.draw() {
                drawLine(
                    color = Color.Yellow,
                    start = Offset(0F, 0F),
                    end = Offset(size.width - 1, size.height - 1),
                    strokeWidth = 10F
                )
                drawLine(
                    color = Color.Yellow,
                    start = Offset(0F, size.height - 1),
                    end = Offset(size.width - 1, 0F),
                    strokeWidth = 10F
                )
                drawContent()
            }
        }
    )
    However, if I try creating a new Compose project with the most recent version of Android Studio 2025, pasting that piece of code into the default "Empty Views App" project template, the code gives the following compilation error:
    Modifier factory functions must use the receiver Modifier instance
    Now, personally, what I understand from this error is that my
    drawYellowCross()
    function should be an extension function of the Modifier class... which it is. Anyway, to sum up, here are my questions: 1. How should I understand this error? 2. What changed in the versions from 2023 up 'till now? 3. How do I migrate / update my code properly? Thanks in anticipation to anyone who wishes to chime in and help.
    c
    • 2
    • 2
  • n

    Nick

    10/05/2025, 1:45 PM
    Yo guys you should try this plugin for exception handling. v1.0.3 under review for 1-2 days atm. https://github.com/ogzkesk/ExceptionGuard-Kotlin-Plugin
  • t

    Tower Guidev2

    10/06/2025, 10:00 AM
    Hi, is jodatime still relevant for modern android applications written in Kotlin?
    j
    o
    • 3
    • 3
  • n

    Nurlibay

    10/07/2025, 8:31 AM
    Hi! When I change the app language, the screen somehow blacks out or flashes. How can I fix this? I’ve tried numerous solutions, but none of them worked. Only the language screen is built with Compose; the others use XML
    Copy code
    private fun applyAppLocale(languageCode: String) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
            // Android 13+: Use LocaleManager for per-app persistence
            val localeManager = context.getSystemService(LocaleManager::class.java)
            localeManager.applicationLocales = LocaleList.forLanguageTags(languageCode)
        } else {
            // Pre-Android 13: Use AppCompatDelegate
            val locales = LocaleListCompat.forLanguageTags(languageCode)
            AppCompatDelegate.setApplicationLocales(locales)
        }
    
        // Immediate update for resources (affects View-based UI)
        val config = Configuration(context.resources.configuration)
        config.setLocale(Locale(languageCode))
        @Suppress("DEPRECATION")
        context.resources.updateConfiguration(config, context.resources.displayMetrics)
    }
    not kotlin but kotlin colored 5
    c
    j
    • 3
    • 2
  • d

    Dan Rusu

    10/10/2025, 4:24 PM
    Hi Android community πŸ‘‹ I'm the developer of Immutable Arrays for Kotlin and I'm hoping to bump the minimum version to JDK 17 in order to upgrade dependencies. Can Android developers safely use Kotlin libraries that use inline classes & inline functions with Java 17 bytecode and still target older devices? I want to make sure I'm not excluding a large portion of the user-base but I'm not familiar with Android development. Thanks in advance πŸ™ p.s. The next release will reduce temporary memory consumption of some operations by 16X on average. Almost done benchmarking locally before pushing.
    not kotlin but kotlin colored 1
    πŸ‘πŸ» 1
    c
    z
    • 3
    • 9
  • i

    igor.wojda

    10/13/2025, 10:52 AM
    πŸ‘‰ Hello fellow Devs I finally had a chance to upgrade my most popular Android open-source project This is still the most complete Android sample you can find around (Kotlin, Coroutines, Jetpack Compose, Jetpack Navigation, Material Design 3, Clean Architecture, Tests, Feature Modules, MVVM, Static Analysis, CI Config, Gradle Convention Plugins, and more). If you spot something off or areas for improvement, please let me know! https://github.com/igorwojda/android-showcase
    πŸ‘€ 2
    πŸŽ‰ 1
    g
    c
    +2
    • 5
    • 25
  • z

    zimjon

    10/18/2025, 12:43 PM
    πŸ‘‹ Hello, team!
    πŸ‘‹ 4
  • j

    Jhsagiv

    10/19/2025, 8:31 PM
    Hi everyone! Hope you all had a great weekend! Excited to share that I have released MCP on Android TV πŸŽ‰ The app uses the official Kotlin MCP SDK and is bundled with a local ADB binary that gives us control over our TV devices. Please check it out and let me know your thoughts and of course PR’s are more then welcome πŸ™ https://github.com/MiddlePoint-Solutions/mcp-on-android-tv
    K 10
    πŸ‘ 2
    🀟 2
    K 1
    c
    k
    • 3
    • 3
  • a

    Archit69 Appdeveloper

    10/21/2025, 2:02 PM
    Hi. Is there a slack channel to ask questions related to Android & Google Play Billing Library?
    🚫 3
    not kotlin but kotlin colored 2
    j
    • 2
    • 4
  • k

    KarlMcCree

    10/22/2025, 10:32 AM
    πŸ‘‹ Hello, team!
    πŸ‘‹ 3
  • p

    Pablo

    10/22/2025, 2:29 PM
    I have an issue with new Android 16 behaviour change of ignoring activity orientation specified in manifest. Even having
    appCategory="game"
    in manifest and the activity forced to "landscape", the OS rotates the screen, displaying the game in portrait but simulating a fake landscape mode, with two black spaces on top and bottom of the game screen. But the main issue is that is destroying and recreating my activity. That breaks completly the game. How is supposed we should sholve this? Some games are old games developed a lot of years ago, even in java, and are not prepared to survive activity recreation. Supposedly
    appCategory="game"
    should help us keeping our games alive in Android 16, but that onDestroy and onCreate doesn't help.
    not kotlin but kotlin colored 3
    c
    • 2
    • 1
  • g

    Georg Prohaska

    10/24/2025, 10:41 AM
    Hi, I have a problem with Android Studio (version arwhal 4 Feature Drop | 2025.1.4) and kotlin versions: The IDE does not recognize the correct kotlin language version I am using (2.2.20). The features I use (e.g. Clock Interface) work fine when building, but the IDE shows an error saying "This declaration is only available in Kotlin 2.1 ...". Now when I try to change the language version in the settings, it does not work, it still shows the same error and when restarting IDE it jumps back to 2.0, even though in my gradle i definitely have 2.2.20 configured. This is my gradle:
    Copy code
    agp = "8.13.0"
    kotlin = "2.2.20"
    
    [plugins]
    androidApplication = { id = "com.android.application", version.ref = "agp" }
    kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
    Copy code
    plugins {
        alias(libs.plugins.kotlinMultiplatform)
        alias(libs.plugins.androidApplication)
    ...
    }
    
    kotlin {
        sourceSets.all {
            languageSettings {
                optIn("kotlin.uuid.ExperimentalUuidApi")
            }
        }
    
        androidTarget {
            compilerOptions {
                jvmTarget.set(JvmTarget.JVM_21)
            }
        }
    ...
    }
    And in the settings it looks like this:
    r
    c
    • 3
    • 4
  • s

    Sudarshan

    11/03/2025, 4:25 AM
    Hey everyone! The author of this post is trying to point out some issues with Kotlin's
    removeFirst()
    and
    removeLast()
    extension functions. Can anyone help me understand why they are problematic? If you'd like, you can directly reply to the author on his post on X.
    i
    • 2
    • 1
  • l

    Luka Ε torek

    11/03/2025, 7:52 AM
    Any new schedules Junie release for Android Studio Otter ?
    z
    • 2
    • 3
  • v

    Vlad Ghilicica

    11/03/2025, 4:02 PM
    hello. i am trying to use the ktor lib in order to perform some cloud requests. if i have a vpn connection ON on the device, the requests get timeout (even if the timeout is set to 30 seconds). i will leave in the thread how chatGPT suggested to configure the HttpClient I use in order to avoid the problem, but I still encounter it has anyone encountered this issue?
    t
    • 2
    • 2
  • m

    Marc Ivan Lim

    11/10/2025, 6:09 AM
    Hi just like to ask about the TimePicker composable, is there a way to update it's semantics / talkback? currently when I'm using clearAndMergeSemantics it removes the focus on the whole timepicker and just become one ( the dial and the input ), are there other ways to update it's semantics? specifically for the dial and for the input texts separately?
    c
    c
    • 3
    • 2
  • m

    malik bilal

    11/14/2025, 10:58 AM
    Hi everyone πŸ‘‹ I’m working with Room in an Android app. β€’ In debug builds, Room works perfectly without any special configuration. β€’ But in release builds, Room breaks unless I add ProGuard/R8
    -keep
    rules for my
    @Entity
    models, DAO interfaces, and sometimes even fields. My concern is: If I keep these classes, their names and structure are no longer obfuscated in release builds. Doesn’t this expose the database schema to reverse-engineering? How do people handle this securely? Any guidance or best practices would be really helpful!
    not kotlin but kotlin colored 6
    b
    g
    +2
    • 5
    • 4
  • g

    Gautam Shorewala

    11/18/2025, 6:58 AM
    Hi i am trying to record audio and STT(Speech to Text) at the same time? I'm using MediaRecorder for recording, but not sure what to use for transcription. Tried Android’s SpeechRecognizer, but it can’t run together with MediaRecorder because both need the mic. is there any other way I can achieve this?
    not kotlin but kotlin colored 3
    c
    • 2
    • 1
  • i

    Irsath Kareem

    11/21/2025, 4:26 AM
    Can anyone help me, about instrumented tests in release build with R8 Enabled, in recent AGP?
    not kotlin but kotlin colored 3
    c
    • 2
    • 1
  • i

    iex

    11/21/2025, 7:13 AM
    Hi, any ideas why local notifications are often not showing up (at all)? β€’ scheduled daily at ~9:00am β€’ cancelled and re-scheduled often (on app's on resume): this is temporary behavior which I'll improve, but technically, it should work? I added remote logging and noticed that the broadcast receiver is not called (though it's also technically possible that the error reporter is not available/doesn't work) Thanks!
    not kotlin but kotlin colored 4
    🧡 2
    c
    • 2
    • 3
  • e

    Ekaterina Volodko [JB]

    11/24/2025, 2:19 PM
    Hi everyone. We’ll appreciate your feedback.
    K 4
    kodee happy 4
    πŸ‘ 2
    K 7
    kodee loving 3
    πŸ’― 2
    🦜 1
    cmp 1
  • s

    Slackbot

    11/27/2025, 11:05 AM
    This message was deleted.
    not kotlin but kotlin colored 4
    m
    • 2
    • 2
  • d

    Dhanur

    12/02/2025, 4:34 PM
    πŸ‘‹ Hello, team!
    not kotlin but kotlin colored 3
  • p

    Pushkar

    12/02/2025, 8:56 PM
    πŸ‘‹ Hello, team!
    not kotlin but kotlin colored 1
    πŸ‘‹ 1