Let's consider this code examples in Kotlin: if (isFooBar) method1(arg1, arg2, arg3) else method2(arg1, arg2, arg3) // Or larger example when(enumBar)
I am trying to make a social media application. I am trying to insert ads in between the posts. In the below code when running app crashes while executing the a
I want to reduce the size of the photo when uploading photos to Firebase storage. There is an error in my codes. I wrote a method for sizing. Can you help? (kot
Is there a any functional difference in Kotlin between those? class Foo { companion object { fun newInstance() = Foo() } } // Create new instance s
How can I create an app that can take incoming calls automatically in kotlin android 10 and above anybody I have tried using the BroadcastReceiver() class but i
Simple question, what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose? if they both do the same things so what's the difference ?
I am building a kotlin app using FirebaseAuth and I want to add some custom rules to keep the user signed in for a time even if they are not using the app. All
I'm very new to Kotlin Flows. As the title suggests I basically have 2 Fragments that Shares a ViewModel. I want to send data between them using SharedFlow as a
This is a pretty basic question, but I haven't been able to find any answer on SO yet. I'm just curious, is there a corresponding way in Java or Kotlin to write
TLDR: this project reproduces the issue: https://github.com/moreginger/aspectj-no-tx Edit: Above now reproduced without jooq i.e. using plain JDBC. Edit: Spring
I don't understand, while learning through a codelab in android they want me to add the following dependencies to the android build.gradle implementation "andro
i want to draw a speech bubble using canvas in jetcompose but i dont know how to draw an arrow at bottom end of the Rectangle this is my code: @Composable fun D
I'm going to put a label on the top for each column and a LazyСolumn on the bottom. As follows. However, when I filled it out, the screen other than I ex
I want to test this function. suspend fun fetchTwoDocs() = coroutineScope { val deferredOne = async { fetchDoc(1) } val deferred
I want to run a block of code depending if the variable is null or not, but I still don't know when to use let,run...etc. I want something like this: myVar?.xxx
I've set up a prod configuration for my datasource to connect to a GCP MySQL instance, basically following this tutorial: https://quarkus.io/guides/deploying-to
I am trying to fix some memory leaks in my apps but I am always fighting with memory profiler instability itself instead of being able to focus on my task. Inte
Hey I am working in ktor. I am getting weird issue and I am trying to find the issue, but unable to get the proper reference. androidMain AndroidHttpClient.kt p
I receive data from Request information as list data (List) below code. That data has a "key" parameter by which I want to sort it. data class ApplianceSetting(
my application has a menu of 3 options, and what I want is that according to a condition that I define, it shows only 2 options, or it shows 3. I have tried all