Suppose my class is: open class TestThis{ @Autowired private var myService : MyService? = null fun doMyFunction(){ val result = myService.d
I have a flow to fetch data from database via content provider. fun getDataFlow(): Flow<Result> { return flow { emit(Result.Loading) // f
I'm making an annotation processor for encrypting personal data due to law. So in order to encrypt those field it should be able to set new value so I want my a
I was tried to run my code in Kotlin 1.5.10 With plugin as plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'dagger.hilt.android.p
I have followed android developer documents to create the recycler view. But now I would like to make the item selectable. Currently have created itemAdapter.kt
this is my first time trying Firestore. I have a collection named users, where every user is a UID and every user has fields (name, phone, and contacts (array))
Fragment is not loading in Unit Test. Code: @RunWith(AndroidJUnit4::class) class DataFeature { @Test fun testEventFragment() { val fragmen
I didn't know this was possible, but I was following an example and I see this piece of code: import kotlinx.android.synthetic.main.activity_main.* class MainA
I'm trying to use the example app from google codelabs to implement the camerax application, but i dont know, why it doesnt save the pictures correctly. private
In Kotlin, can a property of a data class have multiple types? For example: val CurrentValue: Double?|String or val CurrentValue: String|Array? I cannot find it
I'm attempting to configure a RecyclerView adapter and I have a line of code val decorator = AppCompatResources.getDrawable(context, R.drawable.decorator) This
Recently I've updated my android studio to bumblebee. With this update, many of the libraries I've used in artic fox is not working. some of them is following:-
I am doing a db get operation for my cart page which has multiple tables. I have mapper class which has all the relations with all the tables. I have used corou
I have a task to compare the performance of Java and Kotlin programs. I would like to measure CPU memory and RAM usage. I read somewhere that a good idea for CP
I'm trying to match two lists to another. In one list are items of crypto trades, the other contains so called candlesticks, which represents a price of crypto
1 Build File "C:\Users\Macking Crasher\Desktop\Nasmus\gl/1a.gradle Tanw: 19 Could not compile auslaste "C:users\Macking Crusher\Desktop\nashoploustd.greate'. st
When i click on multiple images of recyclerview then multiple audios start playing without stopping the previous one. It is getting irritating. I hope someone c
I am trying to pass array list data to one of my fragments in the nav bar from main activity. Is there a simple way to implement this? Or should I use activity
My understanding of companion object in Kotlin is that they are analogous to static modifiers in Java. It's bad practice to store static fields in Activities an
I'm trying to get the request's path with unresolved path variables in a WebFilter. I know in SpringBoot Servlet version it is possible to do this by getting re