I have 3 entries in my firestore database. I need to query the data and fetch it, then input it into an ArrayList. The problem is my query is
I thought it would be fun and informative to learn more about static code analysis by implementing my own custom linter. I've been trying to declare the below d
I was having a look at the Arrow library found here. Why would ever want to use an Option type instead of Kotlin's built in nullables?
I've been trying to figure this out for 2 days now - I just can't seem to get it to work! I'm using MVVM with a Repository pattern. Could someone tell me what I
When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually,
I created a timer app. So it's counting time basically and I'm saving the time to room when service close in OnDestroy scope. Is it best practise? Or is there a
I have 2 Activities, I want to pass an arraylist of an Object and show it on a ListView Activity A: btnGuardar.setOnClickListener{ i
I used kotlin-android-extensions the kotlin code is simple import android.os.Bundle import android.widget.TextView import android.widget.Toast import kotlinx.an
i have currency code (e.g. USD,INR,etc...). I want to get symbols of only one letter of those codes (e.g $,₹, etc). i have tried to find many solutions li
I'm not sure what's going on here, I pulled my recently updated repo and every time I open the app to debug it on an emulator I get E/FirebaseInstanceId: Token
I'm trying to run tests in the shared library. Setup (versions should be the same for both machines - all are up to date as of today): Kotlin 1.6.21 (tried 1.6.
I'm reading Kotlin Coroutine and know that it is based on suspend function. But what does suspend mean? Coroutine or function gets suspended? From https://kotli
I have 2 fragment pages. The first of these pages is the page where the user is given options. The other page is the page that is displayed according to the opt
I have multiple 100MB raw files with series of user activities in CSV format. I only want to download the first 100 lines of the files. The problem is that each
I want to share text in my CardView using share Intent using kotlin but there is a problem with last line in the code in kotlin the code val shareIntent = I
So let's say I have a product order system. I have several classes that may look like this. data class CreateOrderCommand( val productId: String, val produ
My layout is shown below. i want the textview to appear at the bottom of the camera preview. but this is not the case when the user changes the aspect the ratio
I have a simple application with tesseract with Kotlin. It works great on macos intel. But when I try to run it on Apple M1, this error happens: Exception in th
Let's say I have an object Response. Now I would like to check a boolean variable, success, under Response and do an early return is response is not successful.
In Java, I can write code like: void cast(A a) { if(a instanceof Person) { Person p = (Person) a; } } In Kotlin, what should I do? Us