https://kotlinlang.org logo
Docs
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
  • s

    spierce7

    11/09/2020, 5:57 PM
    Android dynamic features don’t have fantastic documentation at the moment. Does anyone know if dynamic features can be used to update and ship a feature separately from the rest of the core application? Or is every app release tied to a specific version of a dynamic feature, meaning that the feature that’s downloaded and integrated can’t be updated individually.
    s
    • 2
    • 1
  • f

    Fabrice Thilaw

    11/09/2020, 9:00 PM
    Hello #android team. I released a kotlin open-source library, Sonarnet. It provides a better awareness of Internet connectivity (and captive portals) on top of Android connectivity API. Details on its repository https://github.com/fabricethilaw/sonarnet You can test it and tell if it sounds useful for your current or next project
    f
    • 2
    • 2
  • l

    Lilly

    11/10/2020, 2:00 AM
    Hi, I have added a Kotlin library to my project (New Module -> Kotlin/Java library). I also added a dependency which I want to use in my code but no matter what I try, AS won't find the class. When I run the task
    dependencies
    the depency appears in both compileClasspath and runtimeClasspath. My build.gradle.kts:
    plugins {
        id("kotlin")
    }
    
    dependencies {
        implementation("io.github.thanosfisherman.blueflow:blueflow:1.1.2")
    }
    • 1
    • 1
  • a

    akuleshov7

    11/10/2020, 7:42 AM
    Hey guys, we have made a release 0.1.3 of our linter (checker + autofixer) for Kotlin with a huge number of rules. Will be great if you will support it at least with a very simple thing: star on a GitHub: https://github.com/cqfn/diKTat But it will be also great if you will have a chance try it in your CI/CD :) We are already added to awesome-kotlin and awesome-static-analysis, but still need some support from you!
    • 1
    • 1
  • s

    Souhail Marghabi

    11/10/2020, 4:12 PM
    Hello everyone, i am currently having an issue with FusedLocationProviderClient. I used to call .lastlocation from this service. It has always until i tried it nowadays with Android 9/10. it always returns null now. I googled and couldnt find relevant hints, i also updated the google play location service. Any help appreciated.
    :google: 1
    n
    j
    • 3
    • 16
  • l

    Lilly

    11/10/2020, 5:53 PM
    Hey guys, I have a theoretical question. I'd like to follow Clean Architecture, having a presentation/domain/data layer and representing my business logic as use cases within the domain layer which act as mediator between my view model and
    my class
    that provides the data. So far so good. Usually
    my class
    would be a
    repository
    but in my case the only data source of truth is a bluetooth device. I will definitely need a sort of abstraction between my bluetooth device and the use cases. So my question: How would you name this abstraction? Is it a
    Repository
    ,
    Facade
    ,
    Proxy
    ,
    Gateway
    ,
    Bridge
    ,
    Wrapper
    ,
    Mediator
    .
    k
    j
    • 3
    • 12
  • s

    Steve

    11/10/2020, 7:01 PM
    I'm getting a KaptException when trying to compile my project, but Android Studio doesn't give me any more information than a KaptException happened. Not the file that it happened on, not what was happening when it happened, nothing. Is that something that could be improved upon in future versions?
    t
    • 2
    • 2
  • s

    Slackbot

    11/11/2020, 4:17 PM
    This message was deleted.
    r
    s
    • 3
    • 2
  • s

    Slackbot

    11/12/2020, 2:30 AM
    This message was deleted.
    👍 2
    👎 11
    🤦 2
    c
    g
    f
    • 4
    • 3
  • g

    Grant Park

    11/12/2020, 8:00 AM
    weird question: does anyone know of a list of 99+ apps that use push notifications (preferably FCM based)?
    g
    • 2
    • 2
  • s

    Souhail Marghabi

    11/12/2020, 9:47 AM
    Hello everyone. I am currently working with A repeating alarm manager service to trigger location retrieval in background every 15 minutes. It seems to work alright on most usecases, except pn Xiami devices(ex: Redmi). Has anyone faced similar issues or has some hints?
    f
    a
    +2
    • 5
    • 7
  • t

    Tony Kazanjian

    11/12/2020, 8:03 PM
    Hey all, is there a specific channel for Jetpack Compose in this Slack at all?
    t
    • 2
    • 2
  • k

    Kshitij Patil

    11/12/2020, 9:12 PM
    Hey all, I've a doubt regarding kotlin-dsl for android gradle projects: In conventional gradle-groovy based project s, we used to get some warnings/suggestions for new version releases of any library. When I shift all my versions from groovy file to a "dependencies.kt" file, it seems like I lose the ability to get such notifications. Is there any way to make that work? Am I missing something?
    z
    l
    +2
    • 5
    • 18
  • a

    Alexandru Hadăr

    11/13/2020, 12:42 PM
    Does WorkManager differentiate between flavours? e.g. I have 2 flavors,
    A
    and
    B
    . I use WorkManager to schedule work
    Job
    on both flavours, at random time. Will there be a conflict between
    A.Job
    and
    B.Job
    ?
    d
    • 2
    • 1
  • m

    Mohsen

    11/13/2020, 4:49 PM
    #kodein Hello. I hope all is well and that you and your family are safe & healthy during this time. I'm learning Kodein now, and writing a test project with it, for an excellent job interview. Since the last day, I had an error, not solved yet. This is the error: org.kodein.di.Kodein$NotFoundException: No binding found for bind<ForecastRepositoryImpl>() with ?<ForecastFragment>().? { ? } Could you please help me with this? Taking this job is vital to me. Thanks a lot.
    s
    c
    • 3
    • 9
  • f

    FareesHussain

    11/13/2020, 11:33 PM
    please suggest resources to learn MVC
    :google: 4
    c
    • 2
    • 2
  • b

    Baldomero Napoli

    11/14/2020, 4:00 AM
    hello. one queation. any body implememnt drop down list un kotlin?
    :google: 2
    :stackoverflow: 1
    h
    d
    • 3
    • 2
  • d

    dave08

    11/15/2020, 3:36 PM
    How can I publish an aar to maven using gradle kotlin dsl? The android docs only give instructions for Groovy... https://developer.android.com/studio/build/maven-publish-plugin
    v
    • 2
    • 16
  • h

    Hans101

    11/16/2020, 1:20 AM
    Hello, everyone Is there a high skilled android core animation developer? I am looking for a good candidate for my project. Please DM
    d
    • 2
    • 1
  • x

    xiaobailong24

    11/16/2020, 5:02 AM
    Anyone get this error? Thanks https://stackoverflow.com/questions/64852833/could-not-get-resource-https-plugins-gradle-org-m2-org-gradle-kotlin-plugins
    g
    • 2
    • 9
  • p

    Putin

    11/16/2020, 6:50 AM
    Hi, anyone got this error when build to run test for DAO(Room database)?
    Unresolved reference: testing
    Unresolved reference: InstantTaskExecutorRule
    
    This is my test class:
    =========================================
    package com.kotlin.practice.githubrepo.db
    
    import androidx.arch.core.executor.testing.InstantTaskExecutorRule
    import androidx.test.ext.junit.runners.AndroidJUnit4
    import org.junit.Rule
    import org.junit.Test
    import org.junit.runner.RunWith
    
    @RunWith(AndroidJUnit4::class)
    class RepoDaoTest : DbTest() {
    
        @get:Rule
        var instantTaskExecutorRule = InstantTaskExecutorRule()
    
        @Test
        fun insertAndRead() { }
    }
    g
    • 2
    • 4
  • c

    Cyril Find

    11/16/2020, 9:53 AM
    Hi there, is there a way to get the "current workload" of the android device ? (like a % of CPU usage for ex)
    d
    • 2
    • 2
  • r

    Rafs

    11/16/2020, 10:28 AM
    Is this supposed to happen when I resize my android emulator?
    h
    • 2
    • 2
  • s

    Sivan

    11/16/2020, 10:46 AM
    Hey folks! Quick question. Is it possible to use Firebase Phone Auth to JUST verify OTP but use Email Sign in to create and sign in a user?
    d
    n
    z
    • 4
    • 12
  • r

    Rooparsh

    11/16/2020, 3:51 PM
    Hey Android Community, Can we update Android Theme at runtime. My requirement is to update the primary colour throughout the app . The colour hex would be fetched from server. My solutions : 1. Create wrapper classes around Widgets ( TextViews, RadioButtons etc) and pass Shared Pref to it. Then update the primary colours. 2. Use any 3rd Party dependency, if any . Was looking at Airbnb/Paris for the same.
    :stackoverflow: 1
    :google: 1
    z
    s
    • 3
    • 5
  • d

    dhananjaykulkarni19

    11/16/2020, 4:22 PM
    Getting black screen in camerax after swipe with viewpager2. Anybody faced the same problem ? Tried all the solutions from the web. Still no luck. Any leads would be appreciated.
    :google: 4
    :stackoverflow: 5
    z
    • 2
    • 1
  • k

    kenkyee

    11/16/2020, 10:28 PM
    When using
    lifecycleScope.launchWhenStarted {
    how do you set an exception handler? There's no launchWhenStarted(errorHandler) version of this. try/catch ex:Exception seems like too broad a thing to do...
    z
    b
    j
    • 4
    • 18
  • s

    Slackbot

    11/17/2020, 8:01 AM
    This message was deleted.
    :google: 1
    :stackoverflow: 1
    w
    • 2
    • 1
  • n

    Nick

    11/17/2020, 3:52 PM
    This is cool idea! Creating an extension function on ViewBinding. via https://proandroiddev.com/building-the-right-android-view-abstraction-27526d8a45c7
    a
    j
    • 3
    • 3
  • r

    Ryan

    11/17/2020, 4:08 PM
    route as? RouteItem.Destination?: return
    n
    • 2
    • 1
Powered by Linen
Title
r

Ryan

11/17/2020, 4:08 PM
route as? RouteItem.Destination?: return
n

Nick

11/17/2020, 4:35 PM
I was referring to creating an extension function on the view binding
View count: 2