https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • b

    Barış Keser

    07/09/2022, 4:22 AM
    java.lang.UnsatisfiedLinkError: dalvik.system.DexClassLoader[DexPathList[[dex file "/data/user/0/com.aymarka.instorev2/files/nepcore.dex"],nativeLibraryDirectories=[/data/app/~~rliY_gX4FYnHq7_6OdX4ag==/com.aymarka.instorev2-bjaG4J364m66LVGqnPTtCA==/lib/x86, /system/lib, /system_ext/lib]]] couldn't find "libDeviceConfig.so"
    :not-kotlin: 4
  • b

    Barış Keser

    07/09/2022, 4:22 AM
    I had an error like this
  • b

    Barış Keser

    07/09/2022, 4:23 AM
    I couldn’t fix it
    :not-kotlin: 1
  • b

    Barış Keser

    07/09/2022, 4:23 AM
    Is there anybody to help me?
    :not-kotlin: 2
  • t

    the great warrior

    07/09/2022, 7:25 PM
    Hi guys, when foreground service stops. Notification doesn’t cancel. To see the source code, go to the thread
    device-2022-07-09-193523.mp4
    :not-kotlin: 5
    • 1
    • 1
  • a

    ARCHIT JAIN

    07/10/2022, 12:28 PM
    Can someone suggest what will be the best method to periodically check Internet Connection after every 5 sec? ( Not work Manager as min time to use it is 15 min) and ( Also not looper as it will consume a thread permanently )
    :not-kotlin: 7
    g
    g
    • 3
    • 3
  • d

    Daniel Dohou

    07/11/2022, 1:59 PM
    👋 Hello, team!
    👋 8
  • k

    Ky

    07/11/2022, 2:58 PM
    Hello, I'm writing a gradle task in my projects
    buildSrc
    dir. However some kotlin features are not available. For example.
    Map
    is only able to
    get(index: Int)
    there is no option to get by key. Why is this happening in buildSrc?
  • h

    Hiranyey Gajbhiye

    07/12/2022, 5:36 AM
    We are facing a problem with compose In screens, where we need bunch of clickhandlers we are writing code like this
    createFakeComposeScreen(state,clickHandler1,clickHandler2,clickHandler3,functionality4)
    and the increasing amount of parameters is looking bad Do you know how to solve this problem??? We want something like this
    createFakeComposeScreen(state,groupOfFunctions)
    and we can call groupOfFunctions.clickhandler1.invoke() in compose code 🤔
    k
    r
    • 3
    • 3
  • s

    sriram

    07/12/2022, 5:43 AM
    Hi folks, for our use case we want to disable the animation of
    BottomSheetDialogFragment
    first time and enable it next time onwards. I have been having trouble to disable animation for the BottomSheetDialog without adding hacks. Is there a recommended/cleaner way to achieve this?
    :not-kotlin: 2
  • s

    Slackbot

    07/12/2022, 7:20 AM
    This message was deleted.
    f
    t
    g
    • 4
    • 6
  • j

    Jasmin Fajkic

    07/12/2022, 12:30 PM
    👋 Hello, team!
    👋 1
  • j

    Jasmin Fajkic

    07/12/2022, 3:23 PM
    Hello peeps. I have top tabs and each of tabs render LazyColumn. Each list contains posts and each posts contains field to add comment on one post. What is easiest way when i start to write comment on one post to close keyboard when i press on any part of screen. Currently i can switch top tabs and keyboard is still visible as my input stay always in focus.
  • a

    Ahren Swett

    07/12/2022, 5:49 PM
    Help with kotlin Serialization deserializing deep JSON elements. in the element below I am trying to get the sprites: other: official-artwork: but I’m having a really tough time figuring it out I’m not sure how to interact with the dash in the middle of the name I believe the underscore in the front_default will parse nicely but any help appreciated
    {
      "name": "bulbasaur",
      "id": 1,
      "sprites": {
        "back_default": "String",
        "front_default": "String",
        "front_female": null,
        "other": {
          "dream_world": {
            "front_default": "String",
            "front_female": null
          },
          "official-artwork": {
            "front_default": "String"
          }
        }
      }
    }
    I have data classes defined as this
    @OptIn(ExperimentalSerializationApi::class)
    val pokemonFormat = Json {
        ignoreUnknownKeys = true
        coerceInputValues = true
        explicitNulls = false
        isLenient = true }
    
    @Serializable
    data class Pokemon(
        val name : String?,
        val types : List<Type>,
        val Stats: List<Stat>?,
        val order : Int?,
    
        //not sure how to use Kotlin Serialization to get this
        val sprites: Map<String, ?????>
    )
        
    @Serializable
    data class Type(
       val type: Map<String,String>
    )
    
    @Serializable
    data class Stat(
        val stat: Map<String,String>
    )
    
    @Serializable
    data class Other(
     val other: Map<String,String>
    )
    t
    • 2
    • 2
  • f

    fitermay

    07/12/2022, 11:48 PM
    I wanted to bring up the inability to introspect coroutines on Android. This is a huge downer for me and will make coroutines a very difficult sell at work. The terse comment about stack trace recovery being permanently disabled on Android without any option to reenable sounds like it comes from Google not Jetbrains. It has that arrogant “we know better than you “ feel
    j
    • 2
    • 1
  • f

    fitermay

    07/12/2022, 11:54 PM
    Honestly, I'm willing to sacrifice even 50% performance to get traces. Is there a way to hack around disabling stack trace recovery in Android?
    g
    • 2
    • 3
  • i

    itnoles

    07/13/2022, 2:48 AM
    I am noticing that something like ''setUseSupportLibrary(java.lang.Boolean)' is marked unstable with @Incubating' as warning in AS for build.gradle.kts. I am wondering Why?
  • j

    Jast Lai

    07/13/2022, 4:19 AM
    Hi, I have an question about Activity and ViewModel。 I used
    ViewModelProviders.of(MyActivity::this).get(ViewModel::class.java)
    to create a view model by activity. And view model has same instance after a configuration changed (e.g. rotation screen). It's all right and work fine. But I wonder how does view model keep it self's instance even activity has new instance after a configuration changed ?
    :not-kotlin: 1
    d
    • 2
    • 1
  • j

    Jhonatan Sabadi

    07/13/2022, 7:17 PM
    Trying to use
    baseline profiles
    on multi module with multiple buidType and flavors, anyone has any suggestion to make it work?
    java.lang.RuntimeException: No baseline profile was found in the target apk
    ps: Already copied baseline-prof.txt to modula :app
    :not-kotlin: 1
    y
    • 2
    • 1
  • n

    Naveen

    07/13/2022, 8:02 PM
    Hi everyone. Does anybody have idea how to mock object classes in android?
    t
    b
    t
    • 4
    • 9
  • m

    Maneesha Gunawardhana 60

    07/14/2022, 7:00 AM
    👋 Hello, team!
    🤗 1
  • a

    Ayush Bansal

    07/14/2022, 9:00 AM
    Hey, We at CRED have open-sourced our NeoPOP library; the UI Kit that powers the entire CRED app’s NeoPOP design. Feedback and contributions are much appreciated! https://github.com/CRED-CLUB/neopop-android
    :not-kotlin: 1
    👍 4
    g
    d
    • 3
    • 2
  • d

    Dean Djermanović

    07/14/2022, 1:17 PM
    I know it’s not Kotlin related, but does someone use a proxy like Charles, for testing Google Analytics 4 events? I have a problem that I can see the requests being sent to the
    <http://ssl-google-analytics.com|ssl-google-analytics.com>
    , but I cannot see the request body? Does GA4 intentionally hide this information for privacy reasons, or is there some extra option I have to enable? I also know that using proxy is not recommended way of validating GA4 events, but this requirement from the marketing team. 🤷‍♂️
    g
    • 2
    • 20
  • s

    Slackbot

    07/14/2022, 1:38 PM
    This message was deleted.
  • a

    Ahmed Shehata

    07/14/2022, 6:06 PM
    I'm trying to build and generate an app bundle to Google play store using github actions. But the the deploy task wasn't completed because of this reason ' unable to find any release file.. Etc' I have tried all solutions here https://github.com/r0adkll/upload-google-play/issues/90 But still same result. Anyone can help me to solve this?
    :not-kotlin: 6
    g
    • 2
    • 1
  • s

    Slackbot

    07/15/2022, 5:45 AM
    This message was deleted.
  • s

    Sam

    07/15/2022, 8:15 AM
    I tried all variants... Who can tell me how I can get WEA programmatically
    :not-kotlin: 4
    g
    • 2
    • 1
  • l

    Lisandro Di Meo

    07/15/2022, 3:13 PM
    Anyone knows if I should use flows or channels for socket communication ? I'm a little confused with that
    g
    e
    g
    • 4
    • 8
  • r

    rob42

    07/16/2022, 12:34 AM
    Can anyone help me understand the different purposes of a "Tree Uri" and a the Uri of a DocumentFile instantiated from that Tree Uri? At first glance, they both seem to represent the same thing—a directory. e.g.
    val documentFileTreeUri = DocumentFile.fromTreeUri(context, treeUri)
    // treeUri -> <content://com.android.externalstorage.documents/tree/primary%3Afoobar>
    // documentFileTreeUri -> <content://com.android.externalstorage.documents/tree/primary%3Afoo/document/primary%3Afoobar>
    :not-kotlin: 3
  • d

    David Martin

    07/17/2022, 3:53 AM
    Hi peeps, is there anyway to change emulator’s language without change its system’s language for debugging purpose? on iOS I can do that easily, but on Android Studio I can’t find any information about that, because each debug session I’ll test on a different language, I can’t just goto emulator’s settings each time.
    :not-kotlin: 6
Powered by Linen
Title
d

David Martin

07/17/2022, 3:53 AM
Hi peeps, is there anyway to change emulator’s language without change its system’s language for debugging purpose? on iOS I can do that easily, but on Android Studio I can’t find any information about that, because each debug session I’ll test on a different language, I can’t just goto emulator’s settings each time.
:not-kotlin: 6
View count: 8