android-ktx Questions

5

I'm following this article to collect flows in UI. But I couldn't resolve repeatOnLifeCycle API in my code. I have added the below dependency, though. lifecycle:lifecycle-runtime-ktx:2.4.0-alpha03 ...

1

I'm working through this Udacity course on Android/Kotlin/KTX. The "About Me" application introduces data binding, while the Android team seems to advise against using KTX binding. So I would like ...
Discountenance asked 12/5, 2019 at 21:40

3

Solved

I have learned from this article Even Sweeter Android development with Android KTX (https://www.kotlindevelopment.com/even-sweeter-android-ktx-kotlin/) that Android toast can be simplified using KT...
Paxwax asked 11/1, 2019 at 7:29

2

Solved

I'm a little confused about the advantages and disadvantages of using Android KTX vs Anko. Because both libraries are trying to achieve the same end goal, and the line between them it's getting a l...
Moneymaker asked 16/5, 2018 at 1:57

2

Solved

I'm trying to use the new viewModelScope() function provided by the new android ktx library. In the gradle file, I've added: implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.0.0' imp...
Never asked 28/5, 2019 at 17:10

2

Solved

implementation("androidx.core:core-ktx:1.1.0-alpha04") implementation ("androidx.appcompat:appcompat:1.0.2") implementation ("androidx.activity:activity-ktx:1.0.0-alpha05") I was also looking at ...
Exploration asked 14/3, 2019 at 23:16

3

Solved

I'm trying to use WorkManager from architecture components. I've upgraded the compileSdkVersion and targetSdkVersion from 27 to 28. gradle sync is successfully done. But build-time error keeps popp...

1

Solved

I'm trying to handle back button presses in my fragments by registering an OnBackPressedCallback via addOnBackPressedCallback to receive onBackPressed() callbacks without needing to override the me...
Nebo asked 27/2, 2019 at 21:59

3

Solved

Documentation says: fun bundleOf(vararg pairs: Pair<String, Any?>): Bundle Returns a new Bundle with the given key/value pairs as elements. I tried: val bundle = bundleOf { Pair("KEY...
Francinefrancis asked 17/3, 2018 at 23:21

3

I'm trying to use Androidx. The app is pretty new, so there is not much code. I did use the "Refactor to Androidx" option in android studio. But sometime after that, it stopped working. I don't kno...
Lighthouse asked 9/6, 2018 at 12:7

1

Solved

Recently Android team(mainly those guys actually) had introduced androidx.core:core-ktx:1.0.0. I've added it to mine project : implementation 'androidx.core:core-ktx:1.0.0' Everything looks cool...
Delirium asked 17/10, 2018 at 11:10
1

© 2022 - 2024 — McMap. All rights reserved.