I have a list val rewardList: List<Reward> class Reward( val nameBefore: String val amountBefore: Long ) I want to have val rewardArra
I have a question Now, for example, in the old days, we had different activities, we had different fragments The code was divided into different files For examp
I am new to Android Studio and Kotlin. I am outputting texts regularly to the display. Think of an old-fashioned ticker-tape newsfeed, where the latest text is
Instead of running Quarkus, I'm running OptaPlanner through a Main class entry point in Kotlin. This works great within Intellij where I have a simple Run Confi
I've managed to get a job parameter context on a Tasklet but I didn't figure out how to change this value so the next Tasklet can access a modified value val pa
I try to learn jetpack compose these days, and I have a simple project in jetpack compose, bottom sheet work in my project, but when I use bottom navigation, it
In Kotlin, indexOf(x) called on a Collection returns the index of the first element that equals(x) (structural equality ==) How can one get the index based on
I am trying to print all the paths from root to leaf in a tree, but having some issues collecting the path items. Consider the following graph: In my case thou
what is the best way to save user logged in state, check if they logged in or not and redirect them to the right screen. I'm not using firebase Auth in this cur
I am trying to get the email (in this case [email protected]) however I don't see any method I can use that gets me the name of the child instead of the v
How to achieve to listing all files (e.g. Media) inside hidden subdirectory i.e. folder name start with '.' e.g. "(.media)" after using SAF in Flutter/Dart? I h
As I have understood, when I exit the player view while watching a video by pressing or not the pause button, the onPause() and onStop() methods come into play
I need to share the image in the imageView and the following code is promising (though not quite what I ) but returns some errors: Kotlin: fun shareImage (i
So, in Android's Navigation, when we want to pass parameters from a FragmentA to a FragmentB, we have two ways to receive this parameter, via Bundle, in Fragmen
When I update the com.google.firebase:firebase-auth-ktx library to a version higher than 21.0.1 I get the following warning: Kotlin library {0} was compiled wi
I am converting my older XML UI as per requirement. in there, I am unable to update by Jetpack compose UI by my override function. In some research I see many w
The code A collect Flow in ViewModel, and convert a Flow as hot Flow using MutableStateFlow, then use collectAsState() in Compose. The code B collect Flow in Co
I started learning Kotlin in Android studio a few days ago and I still haven't figured it all out, so having this problem is a big question mark for me, I know
I have a screen with several switchcompats like on photo. And I want to collect only last input of each of them to send it to server. I use SharedFlow. Now I ta
Basically, I can't find an implementation of com.google.api.client.http.HttpTransport that works in Android SDK 31. I'm trying to get started with the google-si