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
  • l

    ltm150895

    04/17/2018, 12:24 AM
    hello , I was looking into `butterknife' and it seems like the view binding can be replace with
    Kotlin Android Extensions
    , but is there a way to replace also the annotation
    @OnClick
    for example ?
    🇳🇴 1
    g
    k
    • 3
    • 6
  • d

    Dario Pellegrini

    04/17/2018, 12:31 PM
    Hi everyone! I’d like to use promises in my Android app written in Kotlin. What library do you suggest to use? I found Kovenant on Google.
    m
    • 2
    • 4
  • d

    Darshan Mistry

    04/17/2018, 1:19 PM
    After add this plugin "apply plugin: 'kotlin-kapt'" I have got above error as show in screenshot
    g
    s
    t
    • 4
    • 3
  • w

    withoutclass

    04/17/2018, 7:00 PM
    looks like a possible known issue with kotlin's
    Unit
    , or rather Data Bindings ability to deal with it.
    b
    • 2
    • 7
  • a

    amanda.hinchman-dominguez

    04/19/2018, 2:57 AM
    Trying out Picasso now - is it possible to override the context in my extension for an arrayadapter?
    a
    • 2
    • 2
  • a

    amanda.hinchman-dominguez

    04/19/2018, 3:08 AM
    thanks!
    a
    g
    • 3
    • 4
  • s

    Smit Aen

    04/19/2018, 8:34 AM
    I want to learn kotlin from android, I don't know from where to start. I know kotlin official site is there, but except that please help me the website or YouTube videos which I can follow to learn kotlin
    m
    g
    +2
    • 5
    • 6
  • s

    sachin4203

    04/19/2018, 10:24 AM
    Does anyone know where can I find the official Kotlin style guide xml file ?
    l
    a
    • 3
    • 2
  • e

    elect

    04/19/2018, 8:12 PM
    can anyone suggest me some library to use tor on android?
    :stackoverflow: 4
    d
    c
    • 3
    • 7
  • s

    sachin4203

    04/20/2018, 8:18 AM
    I am using ktlint in my Android project for code style check and formatting. Currently Ktlint uses the official Android Kotlin Style. Is it possible to use Ktlint with my custom Codestyle.xml file ?
    g
    • 2
    • 1
  • r

    rCorbellini

    04/20/2018, 1:06 PM
    can i use coroutines inside my use case without compromising my pattern, or being a library should not be used in the use case (leaving it dependent on a library)?
    a
    • 2
    • 3
  • j

    jw

    04/20/2018, 1:19 PM
    and if it somehow does become a problem, congratulations! you are facebook and rolling in money and you can retire and hire 300 other Android devs to fix the problem and go live on your private island
    👍 9
    :trollface: 8
    😂 1
    🤣 9
    💯 1
    g
    l
    • 3
    • 11
  • h

    henrikhorbovyi

    04/21/2018, 3:18 AM
    What's up!?! I have a question: If I use
    mAdapter.notifyDataSetChanged()
    my RecyclerView will change automatically?
    r
    • 2
    • 1
  • d

    dangvh

    04/22/2018, 11:40 AM
    I'm a newbie of kotlin
    d
    • 2
    • 3
  • r

    Robert Menke

    04/22/2018, 9:15 PM
    Why would you choose Spring Boot over ktor @Alex? Just curious
    a
    • 2
    • 2
  • f

    felipe

    04/22/2018, 9:56 PM
    Hello. The exposed orm works on android with sqlite3?
    :stackoverflow: 1
    g
    • 2
    • 1
  • r

    Robert Menke

    04/22/2018, 11:29 PM
    For android I’d stick with the Rooms ORM. It’s excellent.
    g
    n
    • 3
    • 30
  • n

    Nirav Tukadiya

    04/23/2018, 5:42 AM
    Can anyone suggest few vidoes for getting started?
    g
    p
    • 3
    • 2
  • s

    smedegaard

    04/23/2018, 8:34 AM
    Is there any material for MVVM, Kotlin and LiveData used together. I’m jumping between * https://developer.android.com/topic/libraries/architecture/guide.html * https://github.com/googlesamples/android-architecture/tree/todo-mvvm-live-kotlin/todoapp/ * x number of Medium posts It’s confusing me more than helping me
    n
    w
    a
    • 4
    • 4
  • s

    smedegaard

    04/23/2018, 10:31 AM
    Using Room, having defined an
    @Entity
    as a
    data class
    . How do I define my
    @Database class
    ?
    @Database(entities = {MyDataClass::java.class}, version = 1)
    is not allowed
    l
    • 2
    • 2
  • k

    Kevin Ménager

    04/23/2018, 12:23 PM
    How do you configure your Android project for code coverage with kotlin data class ? For instance, remove all generated code from code coverage ? Do you have any sample ?
    g
    • 2
    • 2
  • c

    Caleb Allen

    04/23/2018, 4:56 PM
    Has this already beed posted here? Seems pretty helpful: https://medium.com/@trionkidnapper/recyclerview-more-animations-with-less-code-using-support-library-listadapter-62e65126acdb
    ✔️ 1
    👍 3
    ➖ 1
    a
    g
    • 3
    • 3
  • l

    locke

    04/23/2018, 5:47 PM
    Is there a way to programmatically get which locales have supported string files? I.e. if my app has both a
    strings-en
    and
    strings-fr
    file is there some way to get the system to return to me a
    [Locale.ENGLISH, Locale.FRENCH]
    array? Or
    ["en","fr"]
    or similar
    :stackoverflow: 2
    a
    • 2
    • 1
  • l

    locke

    04/23/2018, 5:50 PM
    I have literally never gotten a useful answer on SO, so no. I figured asking a room full of Android devs might be a quicker solution.
    :stackoverflow: 1
    👍 1
    g
    a
    • 3
    • 2
  • a

    adam-mcneilly

    04/23/2018, 5:52 PM
    I'd love to know the answer to the question myself, too, but we try to keep non Kotlin related discussions out of this room.
    👍 2
    • 1
    • 1
  • s

    smedegaard

    04/24/2018, 7:17 AM
    When dealing with database(s) is it common to have a repository for each DAO or would one implement a repo that handles all DAOs? All examples on the entire internet is dealing with 1 DAO….
    :stackoverflow: 10
    a
    w
    • 3
    • 4
  • s

    smedegaard

    04/24/2018, 7:43 AM
    Thanks for that helpful reaction @lupajz
    😔 3
    👎 17
    a
    • 2
    • 1
  • r

    Remon

    04/24/2018, 11:54 AM
    Hi everyone, when running command assembleReleaseAndroidTest I noticed that :app:kaptReleaseAndroidTestKotlin is executed and takes over 9 seconds to run. The only kapt dependencies we have is in our app code and are not used for Androidtest. Does anyone have a clue why the task is executed and how to further analyse what is actually done by KAPT?
    d
    • 2
    • 1
  • j

    julioyg

    04/24/2018, 3:08 PM
    Does anyone know if coroutines have different behaviour depending on different versions of Android? I got something like
    launch(UI){ async(CommonPool, parent=myJob){mySuspendFunction()}.await()}
    and when I cancel that job (
    myJob.cancel()
    ) either on my pixel2 running 8.1 or an emulator running the same version it works nicely, but when I run the same code in a nexus 5x running 7.1 it just ignores the cancelation request
    p
    g
    • 3
    • 16
  • d

    dangvh

    04/24/2018, 5:06 PM
    Have a question: What is rxJava and purpose of it ?
    :stackoverflow: 7
    :google: 2
    a
    • 2
    • 1
Powered by Linen
Title
d

dangvh

04/24/2018, 5:06 PM
Have a question: What is rxJava and purpose of it ?
:stackoverflow: 7
:google: 2
a

arekolek

04/25/2018, 7:13 AM
RxJava is a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
View count: 1