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
I want to create a coroutine method which has returning value. For example) fun funA() = async(CommonPool) { return 1 } fun funB() = async(CommonPool) {
I'm developing an Android TV app, and I'm setting up a broadcast receiver to run a work class when the user installs the app. Following the Google documentation
I had a working build, including databinding, but after migrating my Gradle build scripts to Kotlin DSL, I now have unresolved symbol errors for every use of im
I am trying to load list of data in App Widget using jetpack compose and i have stored in Room Local database, how i can retrive the data in GlanceAppWidget cla
How do I make a button without any XML? I tried XML but it did not work and it is "Old" I heard.
I'm trying to make identifying relation with Spring Data JPA. And following is my (simplified) entities. @Entity class AuthorizationCodeEntity( @MapsId
I'm trying to figure out the best way to do Android View Binding in Kotlin. It seems like there are a few of options out there: findViewById val button: Butto
I'm using the new google maps integration library with jetpack compose, however I want to modify a behavior of my markers: when the map initializes I want to sh
I have a database which is prepopulated with some tables which is working fine. I have prepopulated my db. like this Room.databaseBuilder( get(),
I would like to implement a global variable that updates its value when going from one activity to another (and back). To explain in better detail, let's say my
I am using "Draw over other aps" to show a chat head like view. I need to position it relatively and show animation while dismissing it. Please see first video/
I am looking for a way of completion block for my kotlin code. In Swift i have my function: func fetchRegister(with request: RegisterRequest, completion: @es
Background - New to Android, but pretty nifty with moving layouts around, understanding Java, Kotlin and XML. However this task seems to be way above my head.
I am trying to use Kotlin for a Spigot plugin (for version 1.8.8), as I find Kotlin a lot more efficient to use. But, whenever I try and run the plugin, I get t
I want to use library which is in Java and it has alot of errors so I'm trying to change it to Kotlin. And AndroidStudio is not converting Java to Kotlin proper