id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79889006
stackoverflow
MOBILE_DEVELOPMENT
How to set up Instant format with Jackson serialization/deserialization
How to set up Instant format with Jackson serialization/deserialization I'm using jackson-module-kotlin:2.21.0 and jackson-datatype-jsr310:2.21.0. I need to serialize (and then deserialize) java.time.Instant in specified format "yyyy-MM-dd HH:mm:ss" (without nanoseconds) and I can't use annotations on data classes I w...
https://stackoverflow.com/questions/79889006/how-to-set-up-instant-format-with-jackson-serialization-deserialization
kotlin, serialization, jackson
1,771,015,307
se_78907822
stackoverflow
MOBILE_DEVELOPMENT
React Native - Native Module - Double param not nullable (Bridge, Kotlin)
React Native - Native Module - Double param not nullable (Bridge, Kotlin) I’m trying to create a React Native Native Module using Kotlin. I want to use optional parameters, but the app crashes when I use Double?. Example: React Native: const {add} = NativeModules.MyModule; add(); // param not set Kotlin with String?...
https://stackoverflow.com/questions/78907822/react-native-native-module-double-param-not-nullable-bridge-kotlin
android, react-native, kotlin, null, double
1,724,456,575
se_79888639
stackoverflow
MOBILE_DEVELOPMENT
Cannot run my first KMM project: > Could not isolate parameters error
Cannot run my first KMM project: > Could not isolate parameters error I guess my question is repetitive, although I could not find it. When I try to run my first Kotlin multiplatform, I get errors. I first thought it is because of my poor internet connection and the fact that I am in a restricted area, but after se...
https://stackoverflow.com/questions/79888639/cannot-run-my-first-kmm-project-could-not-isolate-parameters-error
android, kotlin, gradle, kotlin-multiplatform, compose-multiplatform
1,770,975,180
se_79407940
stackoverflow
MOBILE_DEVELOPMENT
Unsupported set of inputs/outputs provided when using MediaCodec.createPersistentInputSurface() on Redmi Note 11 Pro 5G
Unsupported set of inputs/outputs provided when using MediaCodec.createPersistentInputSurface() on Redmi Note 11 Pro 5G I am only encountering this issue on a Redmi Note 11 Pro 5G, I am not sure why but the Camera support level is LEVEL_3 if it matters. I get the error below and camera shows me a black preview Stream ...
https://stackoverflow.com/questions/79407940/unsupported-set-of-inputs-outputs-provided-when-using-mediacodec-createpersisten
android, kotlin, android-camera, android-camera2
1,738,562,141
se_79888977
stackoverflow
MOBILE_DEVELOPMENT
Sharing a singleton Native Instance (Privy) across Flutter and Kotlin with method channels
Sharing a singleton Native Instance (Privy) across Flutter and Kotlin with method channels I’m currently integrating the Privy SDK into a Flutter project and I've run into an architectural challenge regarding the SDK's "Single Instance" requirement. The problem is that Privy must maintain a single instance throughout ...
https://stackoverflow.com/questions/79888977/sharing-a-singleton-native-instance-privy-across-flutter-and-kotlin-with-metho
android, flutter, kotlin, privy
1,771,011,337
se_72128802
stackoverflow
MOBILE_DEVELOPMENT
Can a Kotlin Object be used as a Spring bean?
Can a Kotlin Object be used as a Spring bean? Kotlin allows for the definition of singleton objects. In dependency injection (DI) frameworks like Spring or CDI, the life cycle of beans can be defined as singleton. Therefore, it seems sensible to declare Kotlin objects as beans for use in a DI container. Is it indeed p...
https://stackoverflow.com/questions/72128802/can-a-kotlin-object-be-used-as-a-spring-bean
spring, kotlin, dependency-injection, singleton
1,651,760,530
se_79888378
stackoverflow
MOBILE_DEVELOPMENT
Issues with font weight settings in Jetpack Compose when drawing text on Canvas
Issues with font weight settings in Jetpack Compose when drawing text on Canvas I am having some issues with the font weight settings in a Kotlin/Jetpack Compose setup. In my app (simple photo editing), I want to be able to add a text to an image. To position the text, I use a setup like below: Box(...) { Image(.....
https://stackoverflow.com/questions/79888378/issues-with-font-weight-settings-in-jetpack-compose-when-drawing-text-on-canvas
android, kotlin, android-jetpack-compose
1,770,926,903
se_79828365
stackoverflow
MOBILE_DEVELOPMENT
Return type mismatch: expected 'Any', actual 'Authentication?'
Return type mismatch: expected &#39;Any&#39;, actual &#39;Authentication?&#39; I tried to upgrade my codes to Spring Boot 4.0.0, and given the following Kotlin codes, @Bean fun auditorAware(): ReactiveAuditorAware<String> = ReactiveAuditorAware<String> { ReactiveSecurityContextHolder.getContext() ...
https://stackoverflow.com/questions/79828365/return-type-mismatch-expected-any-actual-authentication
kotlin, spring-security, project-reactor
1,763,969,098
se_79887673
stackoverflow
MOBILE_DEVELOPMENT
Kotlin plusAssign function on MutableCollection - Array type parameter T not marked as out
Kotlin plusAssign function on MutableCollection - Array type parameter T not marked as out In Kotlin, the plusAssign (+=) operator function on MutableCollection with Array argument is defined as (see reference here): inline operator fun <T> MutableCollection<in T>.plusAssign( elements: Array<T> ) Why is the ...
https://stackoverflow.com/questions/79887673/kotlin-plusassign-function-on-mutablecollection-array-type-parameter-t-not-mar
kotlin, generics, covariance, mutable
1,770,838,972
se_54075649
stackoverflow
MOBILE_DEVELOPMENT
Access application context in companion object in kotlin
Access application context in companion object in kotlin How can we access application context inside companion object in Android kotlin? I have a companion object inside an abstract class and I want to access context to read Shared Preferences, but I'm not able to get the context. UPDATE: I'm working with this stuff...
https://stackoverflow.com/questions/54075649/access-application-context-in-companion-object-in-kotlin
android, kotlin, companion-object
1,546,868,897
se_64356364
stackoverflow
MOBILE_DEVELOPMENT
Which dependencies do I need for serialization in Kotlin for Gradle to work?
Which dependencies do I need for serialization in Kotlin for Gradle to work? I am following this tutorial on serialization in Kotlin. There's a GitHub link to install dependencies, but Gradle's complaining because of these dependencies; it doesn't want version numbers there. When I remove the version numbers, it can't...
https://stackoverflow.com/questions/64356364/which-dependencies-do-i-need-for-serialization-in-kotlin-for-gradle-to-work
kotlin, gradle, serialization
1,602,688,352
se_79880506
stackoverflow
MOBILE_DEVELOPMENT
My app&#39;s LazyColumn Doesn&#39;t feel as &quot;lightweight&quot; or &quot;loose&quot; as other android apps
My app&#39;s LazyColumn Doesn&#39;t feel as &quot;lightweight&quot; or &quot;loose&quot; as other android apps I am new to android development with Kotlin and jetpack compose, and i have no experience with xml and views. I switched from flutter to kotlin because of the janky scrolling on flutter's ListView, then i tri...
https://stackoverflow.com/questions/79880506/my-apps-lazycolumn-doesnt-feel-as-lightweight-or-loose-as-other-android-ap
android, kotlin, android-recyclerview, lazycolumn
1,769,954,596
se_79881907
stackoverflow
MOBILE_DEVELOPMENT
ViewModel onCleared() is not called when I close the app
ViewModel onCleared() is not called when I close the app I am using Jetpack Compose with navigation graph and dagger hilt. Let's say I have two screens: home screen and settings screens. I open the app, I go to home > settings. If I close the app (deleting it from recent apps) when I am on the settings screen, it's vi...
https://stackoverflow.com/questions/79881907/viewmodel-oncleared-is-not-called-when-i-close-the-app
android, kotlin, android-jetpack-compose, dagger-hilt
1,770,121,386
se_79886805
stackoverflow
MOBILE_DEVELOPMENT
Is there a way to insist you should pass a const/string literal to a java method?
Is there a way to insist you should pass a const/string literal to a java method? People like to write code like this: throw new PotatoNotFound("no such potato: %s".formatted(potato)); even when the PotatoNotFound constructor already only asks for a potato name and does its own string building. This is doubly bad sin...
https://stackoverflow.com/questions/79886805/is-there-a-way-to-insist-you-should-pass-a-const-string-literal-to-a-java-method
java, kotlin
1,770,741,115
se_72060687
stackoverflow
MOBILE_DEVELOPMENT
Compose Desktop: How to Access Extended Material Icon Set?
Compose Desktop: How to Access Extended Material Icon Set? I am making an app using Compose for Desktop. I am trying to include a simple file download Icon that I know is included in the lengthy set of Material Icons, however it is not available under Icons.Filled. Some of the icons included, in my opinion, are nowher...
https://stackoverflow.com/questions/72060687/compose-desktop-how-to-access-extended-material-icon-set
kotlin, android-jetpack-compose, compose-desktop
1,651,247,860
se_60942575
stackoverflow
MOBILE_DEVELOPMENT
unresolved reference : BuildConfig in Kotlin
unresolved reference : BuildConfig in Kotlin So I started a new android application, here is my Android Studio info Android Studio 3.6.1 Build #AI-192.7142.36.36.6241897, built on February 27, 2020 Runtime version: 1.8.0_212-release-1586-b04 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 7 6.1 I also...
https://stackoverflow.com/questions/60942575/unresolved-reference-buildconfig-in-kotlin
android, react-native, kotlin, buildconfig
1,585,622,103
se_67423907
stackoverflow
MOBILE_DEVELOPMENT
Possible to use/lay out a Compose view in an Activity written in Java?
Possible to use/lay out a Compose view in an Activity written in Java? Google gives the following example of how to use a ComposeView in XML and inflate it in a fragment. class ExampleFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedI...
https://stackoverflow.com/questions/67423907/possible-to-use-lay-out-a-compose-view-in-an-activity-written-in-java
java, android, kotlin, android-jetpack-compose
1,620,325,221
se_76308095
stackoverflow
MOBILE_DEVELOPMENT
How to fix compatibility issues with Gradle plugin org.jetbrains.kotlin.android? &quot;The Gradle plugin, with its Kotlin grace, Encounters clashes&quot;
How to fix compatibility issues with Gradle plugin org.jetbrains.kotlin.android? &quot;The Gradle plugin, with its Kotlin grace, Encounters clashes&quot; I'm using Kotlin and Gradle and I have this buildgradle app code: plugins { id 'com.android.application' id 'com.google.gms.google-services' id("org.jetb...
https://stackoverflow.com/questions/76308095/how-to-fix-compatibility-issues-with-gradle-plugin-org-jetbrains-kotlin-android
android, firebase, kotlin, firebase-realtime-database, android-gradle-plugin
1,684,771,923
se_79133655
stackoverflow
MOBILE_DEVELOPMENT
Why does Ktor server 3.0.0 wraps BadRequestException into its copy when Ktor started within jUnit test?
Why does Ktor server 3.0.0 wraps BadRequestException into its copy when Ktor started within jUnit test? Consider the following minimal build configuration: plugins { kotlin("jvm") version "2.0.21" id("org.jetbrains.kotlin.plugin.serialization") version "2.0.21" id("io.ktor.plugin") version "2.3.12" // or "...
https://stackoverflow.com/questions/79133655/why-does-ktor-server-3-0-0-wraps-badrequestexception-into-its-copy-when-ktor-sta
kotlin, junit5, ktor
1,730,122,948
se_77905752
stackoverflow
MOBILE_DEVELOPMENT
How to solve &quot;Failed to calculate the value of task &#39;:compileJava&#39; property &#39;javaCompiler&#39;&quot; when building the default &quot;hello world&quot;gradle project
How to solve &quot;Failed to calculate the value of task &#39;:compileJava&#39; property &#39;javaCompiler&#39;&quot; when building the default &quot;hello world&quot;gradle project I'm new to kotlin,gradle,java and idea. I'm running IDEA 2023.2.5 on Windows 10. The java version is shown below C:\Users\Administrator>j...
https://stackoverflow.com/questions/77905752/how-to-solve-failed-to-calculate-the-value-of-task-compilejava-property-jav
java, kotlin, gradle, intellij-idea
1,706,611,702
se_65832868
stackoverflow
MOBILE_DEVELOPMENT
Caused by: java.lang.AssertionError: Could not delete caches dir yourProject\build\kotlin\compileDebugTestingKotlin
Caused by: java.lang.AssertionError: Could not delete caches dir yourProject\build\kotlin\compileDebugTestingKotlin Sometimes this unexpected message appear and the only way to deal with this is to restart the pc and when it starts again go to the obove path and delete the file before start Android Studio with the pro...
https://stackoverflow.com/questions/65832868/caused-by-java-lang-assertionerror-could-not-delete-caches-dir-yourproject-bui
android, android-studio, kotlin
1,611,250,816
se_79724825
stackoverflow
MOBILE_DEVELOPMENT
Some .so files not supported 16 kb
Some .so files not supported 16 kb Below libraries not supported 16 kb App does not support 16 KB Libraries that do not support 16 KB: base/lib/arm64-v8a/libmodft2.so base/lib/arm64-v8a/libmodpdfium.so base/lib/arm64-v8a/libmodpng.so base/lib/arm64-v8a/libyuv_to_rgb_jni.so base/lib/x86_64/libc++_shared.so base/lib/x86...
https://stackoverflow.com/questions/79724825/some-so-files-not-supported-16-kb
android, kotlin, android-jetpack-compose, android-16
1,754,305,414
se_79882325
stackoverflow
MOBILE_DEVELOPMENT
Can&#39;t use preview in IntelliJ
Can&#39;t use preview in IntelliJ I cannot get previews to show up for me with IntelliJ IDEA 2025.3.2 Is there something I'm doing wrong? I've downloaded all the necessary plugins and restarted and reopened IntelliJ several times. I've got Compose Multiplatform and Kotlin Multiplatform installed as plugins. I download...
https://stackoverflow.com/questions/79882325/cant-use-preview-in-intellij
kotlin, intellij-idea, jetbrains-ide, compose-multiplatform
1,770,159,465
se_79876238
stackoverflow
MOBILE_DEVELOPMENT
Is it not possible to write: &quot;result.plus(if (condition) 1f else 0f)&quot; in kotlin?
Is it not possible to write: &quot;result.plus(if (condition) 1f else 0f)&quot; in kotlin? Let's assume conditionalVariable is true. Then for me: This returns 0f: result = 0f result.plus(if (conditionalVariable) 1f else 0f) return result while this returns 1f: result = 0f if(conditionalVariable) result += 1f else 0f ...
https://stackoverflow.com/questions/79876238/is-it-not-possible-to-write-result-plusif-condition-1f-else-0f-in-kotlin
kotlin, if-statement, expression
1,769,420,822
se_79884632
stackoverflow
MOBILE_DEVELOPMENT
How do I access lists within an object of a variable read from a firestore database?
How do I access lists within an object of a variable read from a firestore database? This is a question related to parsing list/array data. I can create and update collection documents and I can read the total collection of all documents. Once the collection is read, I can cycle through the result and parse all of t...
https://stackoverflow.com/questions/79884632/how-do-i-access-lists-within-an-object-of-a-variable-read-from-a-firestore-datab
android, firebase, kotlin, google-cloud-firestore
1,770,414,868
se_78780417
stackoverflow
MOBILE_DEVELOPMENT
How to integrate Camunda Modeler into an Android Mobile app?
How to integrate Camunda Modeler into an Android Mobile app? I'm working on an Android mobile app that's supposed to model business processes in BPMN notation. Does anyone know of a way to integrate Camunda Modeler into my mobile app, or any other way to access Camunda Modeler directly in my mobile application? I'd li...
https://stackoverflow.com/questions/78780417/how-to-integrate-camunda-modeler-into-an-android-mobile-app
spring-boot, kotlin, android-jetpack-compose, camunda, camunda-modeler
1,721,675,415
se_79884608
stackoverflow
MOBILE_DEVELOPMENT
Kotest Extensions: afterSpec is sometimes out of order
Kotest Extensions: afterSpec is sometimes out of order Usually, when you have two extensions like this: class WtfTest : FunSpec() { val micronaut = TestServer() val repos = TestRepos(micronaut.applicationContext) init { extension(micronaut) extension(repos) test("should work") { ...
https://stackoverflow.com/questions/79884608/kotest-extensions-afterspec-is-sometimes-out-of-order
kotlin, kotest
1,770,412,040
se_79816880
stackoverflow
MOBILE_DEVELOPMENT
Task :app:mergeExtDexDebug FAILED error without code changes
Task :app:mergeExtDexDebug FAILED error without code changes My react native app (RN 0.71, AGP 7.3.1, Gradle 7.5) compiled on android without issues last week. This week when trying to compile again without making any changes to the code and the machine i get the following error : Task :app:mergeExtDexDebug FAILED w: ...
https://stackoverflow.com/questions/79816880/task-appmergeextdexdebug-failed-error-without-code-changes
android, react-native, kotlin, gradle, rnmapbox-maps
1,762,877,762
se_79883757
stackoverflow
MOBILE_DEVELOPMENT
When to execute code generation in a Gradle plugin?
When to execute code generation in a Gradle plugin? I have written a small Gradle plugin, that generates some code. It generates a single standalone pure Kotlin object, that is to be used by user's code. The plugin declares a task that generates the code by creating a Kotlin source file in the build directory. That fi...
https://stackoverflow.com/questions/79883757/when-to-execute-code-generation-in-a-gradle-plugin
kotlin, gradle, gradle-plugin
1,770,314,087
se_79883948
stackoverflow
MOBILE_DEVELOPMENT
Head up notification NOT works when unlocked screen
Head up notification NOT works when unlocked screen In this question... FSI means "Full Screen Intent" HUN means "Head Up Notification" My environment Samsung Galaxy S20 Plus (Physical Device) Android 15 One UI 7.0 screen lock with password Korea (South) Android Studio 2025. 2. 3. I allowed notification and F...
https://stackoverflow.com/questions/79883948/head-up-notification-not-works-when-unlocked-screen
android, kotlin
1,770,338,153
se_79883891
stackoverflow
MOBILE_DEVELOPMENT
Flutter app +Android phone - suddenly the keyboard will not show up for the text fields
Flutter app +Android phone - suddenly the keyboard will not show up for the text fields The problem was I had an app that has a settings page with textFormFields. That page has worked for literally years, and I made zero changes to it's code. Out of nowhere, the keyboard stops coming up for the user to type anything. ...
https://stackoverflow.com/questions/79883891/flutter-app-android-phone-suddenly-the-keyboard-will-not-show-up-for-the-text
android, flutter, kotlin, android-softkeyboard
1,770,327,339
se_79881376
stackoverflow
MOBILE_DEVELOPMENT
Upgrading to Compose Multiplatform 1.10.0 no longer resolves compose.runtime
Upgrading to Compose Multiplatform 1.10.0 no longer resolves compose.runtime After upgrading to Compose Multiplatform 1.10.0 (beta), my project no longer resolves compose.runtime. I previously had dependencies like: implementation(compose.runtime) implementation(compose.foundation) implementation(compose.material3) im...
https://stackoverflow.com/questions/79881376/upgrading-to-compose-multiplatform-1-10-0-no-longer-resolves-compose-runtime
kotlin, gradle, intellij-idea, kotlin-multiplatform, compose-multiplatform
1,770,059,588
se_79882508
stackoverflow
MOBILE_DEVELOPMENT
Jetpack Compose: Bottom button moves up with keyboard, want it scrollable instead of resized
Jetpack Compose: Bottom button moves up with keyboard, want it scrollable instead of resized I am building a screen using Jetpack Compose with Scaffold, Surface, and ConstraintLayout. The screen has a BasicTextField in the center and a Continue button fixed at the bottom. When I tap on the BasicTextField and the keybo...
https://stackoverflow.com/questions/79882508/jetpack-compose-bottom-button-moves-up-with-keyboard-want-it-scrollable-instea
android, kotlin, button, android-jetpack-compose, ime
1,770,188,092
se_65088941
stackoverflow
MOBILE_DEVELOPMENT
Getting command line arguments for Kotlin/JS Node process
Getting command line arguments for Kotlin/JS Node process I have a very basic Kotlin/JS application targeting Node.js through the Gradle plugin. I want to read the command line arguments passed to the process when I execute it (using node build/js/packages/node-so-repro/kotlin/node-so-repro.js myArgument). I am trying...
https://stackoverflow.com/questions/65088941/getting-command-line-arguments-for-kotlin-js-node-process
node.js, kotlin, kotlin-js
1,606,819,161
se_73088915
stackoverflow
MOBILE_DEVELOPMENT
In a Kotlin multi-platform (or JS) project, (how) can one pass custom command line arguments to Node.js?
In a Kotlin multi-platform (or JS) project, (how) can one pass custom command line arguments to Node.js? I'm working on a Kotlin multi-platform project, and I need my JS tests to run on Node.js but with custom command line arguments (specifically I need node to run with the --expose-gc flag, because some tests need to...
https://stackoverflow.com/questions/73088915/in-a-kotlin-multi-platform-or-js-project-how-can-one-pass-custom-command-li
node.js, kotlin, gradle, gradle-kotlin-dsl, kotlin-js
1,658,562,028
se_79881594
stackoverflow
MOBILE_DEVELOPMENT
View screenshots taken during an Espresso test in Android Studio
View screenshots taken during an Espresso test in Android Studio I have a few Espresso UI tests for my Android app. During the tests, there are some moments where I take screenshots, which will be evaluated after the test, qualitatively. I found the androidx.test.espresso.screenshot.captureToBitmap method, as well as ...
https://stackoverflow.com/questions/79881594/view-screenshots-taken-during-an-espresso-test-in-android-studio
android, kotlin, android-studio, android-espresso
1,770,088,717
se_79881396
stackoverflow
MOBILE_DEVELOPMENT
IntelliJ IDEA Kotlin Notebook not showing all printed lines
IntelliJ IDEA Kotlin Notebook not showing all printed lines I am currently using IntelliJ IDEA to run Kotlin Notebooks to learn Kotlin. Unfortunately, even for extremely simple and easily tracable code, IntelliJ will only show about 50% of the printed lines (though the lines being skipped are repeatable). Toggling bet...
https://stackoverflow.com/questions/79881396/intellij-idea-kotlin-notebook-not-showing-all-printed-lines
kotlin, intellij-idea, kotlin-notebook
1,770,062,243
se_77541454
stackoverflow
MOBILE_DEVELOPMENT
Call Swift code from Kotlin Multiplatform
Call Swift code from Kotlin Multiplatform I have a simple swift class: @objc public class Wallet: NSObject { @objc public func getPrivateKey() -> String { return "" } } that i would like to call from Kotlin. I have also created a bridging header that looks like this: #ifndef iosApp_Bridging_Header_h #d...
https://stackoverflow.com/questions/77541454/call-swift-code-from-kotlin-multiplatform
android, ios, swift, kotlin, kotlin-multiplatform
1,700,812,249
se_79881381
stackoverflow
MOBILE_DEVELOPMENT
Upgrading to Compose Multiplatform 1.10.0 no longer resolves preview annotations
Upgrading to Compose Multiplatform 1.10.0 no longer resolves preview annotations After upgrading to Compose Multiplatform 1.10.0 (beta), my preview annotations from JetBrains no longer resolve. I previously used: import org.jetbrains.compose.ui.tooling.preview.Preview After updating, I get errors like: Unresolved re...
https://stackoverflow.com/questions/79881381/upgrading-to-compose-multiplatform-1-10-0-no-longer-resolves-preview-annotations
kotlin, gradle, intellij-idea, kotlin-multiplatform, compose-multiplatform
1,770,059,798
se_79824663
stackoverflow
MOBILE_DEVELOPMENT
How can I improve seat rendering in compose when the layout is separated by section, row, and column?
How can I improve seat rendering in compose when the layout is separated by section, row, and column? I am confused as to why my app is lagging when I scroll down to this seat layout. What's wrong with my code? Can somebody tell me how I can improve the performance? Here is the code to create the layout: LazyRow( ...
https://stackoverflow.com/questions/79824663/how-can-i-improve-seat-rendering-in-compose-when-the-layout-is-separated-by-sect
android, kotlin, android-jetpack-compose, android-jetpack
1,763,567,279
se_56371971
stackoverflow
MOBILE_DEVELOPMENT
Dismissing dialog and showing new one shortly shows underlying fragment before opening new dialog
Dismissing dialog and showing new one shortly shows underlying fragment before opening new dialog I currently have one fragment that shows dialogfragment, and when I press the button on dialogfragment, I want to show another dialogfragment. In my first dialog fragment I have following method: fun showSecondDialog() ...
https://stackoverflow.com/questions/56371971/dismissing-dialog-and-showing-new-one-shortly-shows-underlying-fragment-before-o
android, kotlin, dialogfragment
1,559,193,034
se_75418906
stackoverflow
MOBILE_DEVELOPMENT
How to configure VSCode to debug a Gradle / Kotlin project?
How to configure VSCode to debug a Gradle / Kotlin project? Currently trying to consolidate development workflow for back and front in VSCode with devcontainer, instead of IntelliJ for back and VSCode for front, with the use of Codespace/Gitpod in mind and a goal to ease the debug of the whole stack. I've read multipl...
https://stackoverflow.com/questions/75418906/how-to-configure-vscode-to-debug-a-gradle-kotlin-project
kotlin, visual-studio-code, gradle, vscode-debugger, vscode-remote
1,676,103,495
se_79877250
stackoverflow
MOBILE_DEVELOPMENT
How to configure kotlin specific source sets?
How to configure kotlin specific source sets? Assume I'm using gradle 9.1 and kotlin plugin 2.3.0 Suppose I have the following gradle configuration for java project which creates a custom sources directory (imagine integration tests, but not under integrationTest directory. For the purpose of the question it cannot be...
https://stackoverflow.com/questions/79877250/how-to-configure-kotlin-specific-source-sets
java, kotlin, gradle
1,769,527,621
se_60452085
stackoverflow
MOBILE_DEVELOPMENT
java.io.FileNotFoundException: /storage/emulated/0/Download/myFile.pdf: open failed: EACCES (Permission denied)
java.io.FileNotFoundException: /storage/emulated/0/Download/myFile.pdf: open failed: EACCES (Permission denied) Since Android Q came out there are some privacy changes in the permissions about read from external storage. I have a chat application that the user can choose a photo from Downloads etc... and send it. So i...
https://stackoverflow.com/questions/60452085/java-io-filenotfoundexception-storage-emulated-0-download-myfile-pdf-open-fai
android, kotlin, filenotfoundexception, android-contentresolver
1,582,894,294
se_78492273
stackoverflow
MOBILE_DEVELOPMENT
override fun onCreate(savedInstanceState: Bundle?): compiler error &quot;onCreate overrides nothing&quot;
override fun onCreate(savedInstanceState: Bundle?): compiler error &quot;onCreate overrides nothing&quot; I'm trying to learn Kotlin in Android Studio 2023.3.1 by working my way through the examples in Android Programming, The Big Nerd Ranch, 5th Edition. The CriminalIntent example contains the class CrimeDetailFragm...
https://stackoverflow.com/questions/78492273/override-fun-oncreatesavedinstancestate-bundle-compiler-error-oncreate-ove
kotlin
1,715,890,225
se_79878515
stackoverflow
MOBILE_DEVELOPMENT
Making apps with Kotlin
Making apps with Kotlin I learned Kotlin from W3schools. I want to create apps. But on W3schools, there aren't any tutorials for making apps with Kotlin. Where can I learn how to make apps with Kotlin?
https://stackoverflow.com/questions/79878515/making-apps-with-kotlin
android, kotlin
1,769,674,910
se_79340066
stackoverflow
MOBILE_DEVELOPMENT
BackHandler on Compose Multiplatform (Android and iOS)
BackHandler on Compose Multiplatform (Android and iOS) I want to intercept the back gesture or tap (e.g., swiping back on iOS or pressing the back button or gesture on Android) to show a dialog before exiting a screen. I understand that in Jetpack Compose, I could use BackHandler, but since I am working with Compose M...
https://stackoverflow.com/questions/79340066/backhandler-on-compose-multiplatform-android-and-ios
android, ios, kotlin, compose-multiplatform
1,736,354,459
se_79878097
stackoverflow
MOBILE_DEVELOPMENT
How to avoid backround leaking as an outline around swipable card in Jetpack Compose
How to avoid backround leaking as an outline around swipable card in Jetpack Compose I am trying to implement a custom swipe-to-delete card in Jetpack Compose without using any library. Inside a parent Box, I have two composables layered on top of each other: The bottom one is a red delete background using matchParen...
https://stackoverflow.com/questions/79878097/how-to-avoid-backround-leaking-as-an-outline-around-swipable-card-in-jetpack-com
android, kotlin, android-jetpack-compose, android-debug
1,769,615,913
se_79877667
stackoverflow
MOBILE_DEVELOPMENT
Did not resolve org.jetbrains.kotlin:kotlin-stdlib-common:2.2.0 which is part of the dependency lock state
Did not resolve org.jetbrains.kotlin:kotlin-stdlib-common:2.2.0 which is part of the dependency lock state I have a 3 modules in my Android app. The modules are app, devCore, myLibrary. Where myLibrary is library module. I am enforcing dependency locking for build.gradle files using dependencyLocking { lockAllConf...
https://stackoverflow.com/questions/79877667/did-not-resolve-org-jetbrains-kotlinkotlin-stdlib-common2-2-0-which-is-part-of
android, kotlin, gradle, dependencies, build.gradle
1,769,581,421
se_69171807
stackoverflow
MOBILE_DEVELOPMENT
Markdown editor and preview not working in Android Studio?
Markdown editor and preview not working in Android Studio? I have these two plugins installed currently: https://plugins.jetbrains.com/plugin/17254-markdown-editor https://plugins.jetbrains.com/plugin/7793-markdown none of these works. I have googled this problem and found many people are facing the same issue. But ...
https://stackoverflow.com/questions/69171807/markdown-editor-and-preview-not-working-in-android-studio
android, android-studio, kotlin, markdown
1,631,593,742
se_79877061
stackoverflow
MOBILE_DEVELOPMENT
Kotlin Jetpack Compose LazyColumn + stickyHeader: focused item hidden under sticky header when navigating with keyboard or with accessibility TalkBack
Kotlin Jetpack Compose LazyColumn + stickyHeader: focused item hidden under sticky header when navigating with keyboard or with accessibility TalkBack I have a LazyColumn with multiple stickyHeaders. When navigating the list using keyboard, I encounter a layout issue. Expected behavior When an item receives focus, the...
https://stackoverflow.com/questions/79877061/kotlin-jetpack-compose-lazycolumn-stickyheader-focused-item-hidden-under-stic
android, kotlin, android-jetpack-compose, accessibility, focus
1,769,511,027
se_79876670
stackoverflow
MOBILE_DEVELOPMENT
How can inline functions exist in a lexically scoped language?
How can inline functions exist in a lexically scoped language? To my understanding, an inline function is a sort of compiler optimization that inserts the function body into wherever it was called. For instance, consider this kotlin code: inline fun someFunction(text: String) { print(text) } fun main() { val ...
https://stackoverflow.com/questions/79876670/how-can-inline-functions-exist-in-a-lexically-scoped-language
kotlin, lexical-scope
1,769,463,139
se_79875796
stackoverflow
MOBILE_DEVELOPMENT
Date-time string with time span where ISO 8601 is expected
Date-time string with time span where ISO 8601 is expected I'm developing an Android app, and I need to parse some external data. This data includes date-time values, and claims these values to be ISO 8601 compatible. While most of examples I encountered were parsed correctly by Kotlin time and date formats, I encount...
https://stackoverflow.com/questions/79875796/date-time-string-with-time-span-where-iso-8601-is-expected
android, kotlin, datetime, iso8601
1,769,358,633
se_79830377
stackoverflow
MOBILE_DEVELOPMENT
No longer see trace/span IDs after upgrading to spring boot 4
No longer see trace/span IDs after upgrading to spring boot 4 After upgrading to Spring Boot 4 I don't see any span/trace ids in my logs where I used to @GetMapping fun hello(): String { logger.info("Hello World!") return "Hello World!" } In Spring Boot 3 the logs would show trace-id [692663a596df595760ba505c...
https://stackoverflow.com/questions/79830377/no-longer-see-trace-span-ids-after-upgrading-to-spring-boot-4
spring-boot, kotlin, spring-micrometer, micrometer-tracing
1,764,137,256
se_79876615
stackoverflow
MOBILE_DEVELOPMENT
android compose mqtt implementation
android compose mqtt implementation i'm actually creating an app to control a raspberry pi robot, but for the communication i must use the mqtt protocol, i'm using the davidepianca98 library for that but i don't know where to put the functions. My app has 2 screens, the first one for setting the parameters for mqtt an...
https://stackoverflow.com/questions/79876615/android-compose-mqtt-implementation
kotlin, android-jetpack-compose, mqtt, kotlin-coroutines
1,769,456,258
se_79876471
stackoverflow
MOBILE_DEVELOPMENT
Can MutableSharedFlow Emit Nothing
Can MutableSharedFlow Emit Nothing So I have a MutableSharedFlow called isNavigateToSecond: private val _isNavigateToSecond = MutableSharedFlow<Boolean>() val isNavigateToSecond = _isNavigateToSecond.asSharedFlow() fun someTask() = viewModelScope.launch { ... _isNavigateToSecond.emit(true) } And I use it t...
https://stackoverflow.com/questions/79876471/can-mutablesharedflow-emit-nothing
android, kotlin, kotlin-flow
1,769,442,649
se_79876329
stackoverflow
MOBILE_DEVELOPMENT
Local network scanning packages for kotlin
Local network scanning packages for kotlin Are there packages related to scanning for local devices connected to a network and displaying the name and network information of connected devices? I'm trying to build an application that can scan for devices connected to its shared mobile data network (hotspot) and Display...
https://stackoverflow.com/questions/79876329/local-network-scanning-packages-for-kotlin
java, android, kotlin
1,769,431,192
se_54844308
stackoverflow
MOBILE_DEVELOPMENT
How to set selected language to whole app using ListPreferences over custom SettingsActivity?
How to set selected language to whole app using ListPreferences over custom SettingsActivity? I recently started working with Android App development and know that the similar question has already been asked. But nevertheless, I could not find any solution to solve my problem. I have the following issue: I am using a ...
https://stackoverflow.com/questions/54844308/how-to-set-selected-language-to-whole-app-using-listpreferences-over-custom-sett
android, kotlin, sharedpreferences, listpreference, preferencefragment
1,550,943,830
se_79875792
stackoverflow
MOBILE_DEVELOPMENT
Newland Android SDK does not expose raw ESC/POS commands – how to trigger cash drawer from Flutter?
Newland Android SDK does not expose raw ESC/POS commands – how to trigger cash drawer from Flutter? I’m integrating a Newland POS printer SDK in a Flutter application (via Android/Kotlin). The SDK works fine for printing, but it only exposes high-level printing APIs (e.g. printing Bitmap / formatted content). It does ...
https://stackoverflow.com/questions/79875792/newland-android-sdk-does-not-expose-raw-esc-pos-commands-how-to-trigger-cash-d
android, flutter, kotlin, thermal-printer, escpos
1,769,358,390
se_42646016
stackoverflow
MOBILE_DEVELOPMENT
What does the arrow (&quot;-&gt;&quot;) operator do in Kotlin?
What does the arrow (&quot;-&gt;&quot;) operator do in Kotlin? Probably a little bit broad question, but the official documentation doesn't even mentioning the arrow operator (or language construct, I don't know which phrase is more accurate) as an independent entity. The most obvious use is the when conditional stat...
https://stackoverflow.com/questions/42646016/what-does-the-arrow-operator-do-in-kotlin
operators, kotlin
1,488,883,102
se_79852151
stackoverflow
MOBILE_DEVELOPMENT
How to use Google&#39;s Low Light Boost with CameraX as creating LlbSession requires Surface?
How to use Google&#39;s Low Light Boost with CameraX as creating LlbSession requires Surface? I have this code import android.os.Bundle import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import andr...
https://stackoverflow.com/questions/79852151/how-to-use-googles-low-light-boost-with-camerax-as-creating-llbsession-requires
android, kotlin, android-camerax
1,766,304,401
se_77363060
stackoverflow
MOBILE_DEVELOPMENT
How to replace the deprecated kotlinOptions in a java-library &amp; kotlin module?
How to replace the deprecated kotlinOptions in a java-library &amp; kotlin module? Within my Android application project I am using the following Gradle (Groovy) configuration for a library module: // build.gradle apply plugin: "java-library" apply plugin: "kotlin" dependencies { api Libs.engelsystem impleme...
https://stackoverflow.com/questions/77363060/how-to-replace-the-deprecated-kotlinoptions-in-a-java-library-kotlin-module
android, kotlin, groovy, deprecated, java-module
1,698,270,210
se_79874112
stackoverflow
MOBILE_DEVELOPMENT
How do I get rid of this build error &quot;Unable to load class &#39;com.android.build.gradle.api.BaseVariant&#39;&quot;
How do I get rid of this build error &quot;Unable to load class &#39;com.android.build.gradle.api.BaseVariant&#39;&quot; in my Android Studio project I'm having no end in trouble getting all my plugins to work correctly with Gradle 9.2.1-bin. I keep getting this error "Unable to load class 'com.android.build.gradle.a...
https://stackoverflow.com/questions/79874112/how-do-i-get-rid-of-this-build-error-unable-to-load-class-com-android-build-gr
android, kotlin, gradle
1,769,115,015
se_79491870
stackoverflow
MOBILE_DEVELOPMENT
Kotlin Multiplatform Library with compose UI elements used in androidMain
Kotlin Multiplatform Library with compose UI elements used in androidMain I'm wondering if it's possible to create a kotlin multiplatform library that contains a composable located at the src of androidMain. Right now I'm now able to make it work, because android studio is always complaining about something. With the ...
https://stackoverflow.com/questions/79491870/kotlin-multiplatform-library-with-compose-ui-elements-used-in-androidmain
android, kotlin, build.gradle, kotlin-multiplatform, composable
1,741,340,851
se_70130395
stackoverflow
MOBILE_DEVELOPMENT
Which Hamcrest matcher to import
Which Hamcrest matcher to import I am using Hamcrest in a gradle/JVM project via the org.hamcrest:hamcrest:2.2 artifact which is what the Hamcrest website recommends. When I go to static import a matcher, e.g. is or notNullValue, I am presented with 3 options of where to import it from. In the case of notNullValue the...
https://stackoverflow.com/questions/70130395/which-hamcrest-matcher-to-import
java, kotlin, junit, jvm, hamcrest
1,637,963,808
se_79873801
stackoverflow
MOBILE_DEVELOPMENT
Kotlin SFTP inbound; Spring integration. How to delete local file if i got exception while sending message to handling channel?
Kotlin SFTP inbound; Spring integration. How to delete local file if i got exception while sending message to handling channel? I am getting files from different SFTPs via SftpInboundFileSynchronizer, handling and deleting afterwards despite handling result. I'am using separate threadPools for polling and handling. Th...
https://stackoverflow.com/questions/79873801/kotlin-sftp-inbound-spring-integration-how-to-delete-local-file-if-i-got-excep
spring, kotlin, spring-integration
1,769,089,698
se_79873653
stackoverflow
MOBILE_DEVELOPMENT
Why does MutableSharedFlow not return its last value?
Why does MutableSharedFlow not return its last value? I have this code in my Android ViewModel class DummyViewModel: ViewModel() { private var _uiState = MutableSharedFlow<UIStates>(replay = 4) private fun gotoNextActivity(){ Log.d(TAG, "gotoNextActivity()") viewModelScope.launch { ...
https://stackoverflow.com/questions/79873653/why-does-mutablesharedflow-not-return-its-last-value
android, kotlin, kotlin-coroutines, kotlin-flow
1,769,079,843
se_50303692
stackoverflow
MOBILE_DEVELOPMENT
Suppress NOTHING_TO_INLINE warning globally
Suppress NOTHING_TO_INLINE warning globally I have a function in Kotlin that I want to inline despite not being high-order. I find that through out the project I have numerous occurrences of such scenario. Therefore, to ignore compiler warnings about using inline functions, I have to use lots of Suppress("NOTHING_TO...
https://stackoverflow.com/questions/50303692/suppress-nothing-to-inline-warning-globally
intellij-idea, kotlin, inline, suppress-warnings
1,526,108,321
se_58758373
stackoverflow
MOBILE_DEVELOPMENT
Setting different resource values using values folder for different API versions
Setting different resource values using values folder for different API versions I have been noticing a crash on Android 6 with error message - "A/OpenGLRenderer: Error: Ambient Vertex Buffer overflow!!!" Setting hardware accelerated to false for an activity in manifest file solves the problem, but affects the perform...
https://stackoverflow.com/questions/58758373/setting-different-resource-values-using-values-folder-for-different-api-versions
android, kotlin, android-resources
1,573,169,586
se_79823843
stackoverflow
MOBILE_DEVELOPMENT
Replacing Arrow&#39;s deprecated orElse with getOrElse doesn&#39;t work
Replacing Arrow&#39;s deprecated orElse with getOrElse doesn&#39;t work I'm working on migrating some existing Kotlin code from Arrow 1.x to 2.x. The old code looked something like this: fun filterStrings(incoming: List<String>): Option<String> = incoming .filter { it.contains('e') } .firstOrNone() .orElse...
https://stackoverflow.com/questions/79823843/replacing-arrows-deprecated-orelse-with-getorelse-doesnt-work
kotlin, option-type, arrow-kt
1,763,500,699
se_79761743
stackoverflow
MOBILE_DEVELOPMENT
YouTube video in WebView gives error code 153 on Android
YouTube video in WebView gives error code 153 on Android I am trying to play YouTube videos inside an Android WebView using the IFrame API. The player initialises correctly, but sometimes I get this error: Error code: 153 Here is my WebView setup: binding?.playerWebview?.apply { with(settings) { javaScri...
https://stackoverflow.com/questions/79761743/youtube-video-in-webview-gives-error-code-153-on-android
kotlin, webview, youtube, youtube-iframe-api
1,757,583,460
se_54511231
stackoverflow
MOBILE_DEVELOPMENT
Localize the period (AM/PM) in a time stamp to another language
Localize the period (AM/PM) in a time stamp to another language I would like to have the period in a timestamp to use different notation than am/pm. Can this translation be done? current format : dd/mm/yyyy hh:mm aa eg . 01/02/2019 05:37 PM required: 01/02/2019 05:37 chiều Notice the "chiều" instead of PM...
https://stackoverflow.com/questions/54511231/localize-the-period-am-pm-in-a-time-stamp-to-another-language
java, android, kotlin, localization, internationalization
1,549,262,603
se_79868934
stackoverflow
MOBILE_DEVELOPMENT
StateFlow does not update when inserting entries in the underlying Room database
StateFlow does not update when inserting entries in the underlying Room database In my ViewModel the schedule StateFlow represents all values in the database, and the selectedDateAvailableTime StateFlow is based on that. I populate my database with fillScheduleEntities(), but the UI - collecting selectedDateAvailableT...
https://stackoverflow.com/questions/79868934/stateflow-does-not-update-when-inserting-entries-in-the-underlying-room-database
android, kotlin, android-room, dagger-hilt, kotlin-flow
1,768,511,688
se_77628445
stackoverflow
MOBILE_DEVELOPMENT
java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler?
java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler? I'm getting this strange AccessError after implementing Firebase Database dependencies. I had Firebase Authentication and Firebase Analytics enabled before loading Firebase Database. I'm using it...
https://stackoverflow.com/questions/77628445/java-lang-illegalaccesserror-superclass-access-check-failed-class-org-jetbrain
firebase, kotlin, android-gradle-plugin, build.gradle
1,702,058,763
se_72730209
stackoverflow
MOBILE_DEVELOPMENT
android.content.res.Resources$NotFoundException: Drawable compat_splash_screen_no_icon_background with resource ID #0x7f0801b6
android.content.res.Resources$NotFoundException: Drawable compat_splash_screen_no_icon_background with resource ID #0x7f0801b6 I am getting this issue only for samsung galaxy devices- Galaxy Tab A, Galaxy A03 Core, Galaxy A02, Galaxy A32 Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentIn...
https://stackoverflow.com/questions/72730209/android-content-res-resourcesnotfoundexception-drawable-compat-splash-screen-n
java, android, kotlin, android-jetpack-compose, android-splashscreen
1,655,987,474
se_79871235
stackoverflow
MOBILE_DEVELOPMENT
A small flicker in screen is coming , while appbar/searchbar is hiding and when the webview is pushing the appbar/searcbar to hide,
A small flicker in screen is coming , while appbar/searchbar is hiding and when the webview is pushing the appbar/searcbar to hide, A small flicker in screen is coming , while appbar/searchbar is hiding and when the webview is pushing the appbar/searcbar to hide, I want the same scroll behavior of apps like chrome and...
https://stackoverflow.com/questions/79871235/a-small-flicker-in-screen-is-coming-while-appbar-searchbar-is-hiding-and-when
android, kotlin
1,768,830,364
se_79871234
stackoverflow
MOBILE_DEVELOPMENT
How to get access to the meta quest 3 camera feed?
How to get access to the meta quest 3 camera feed? I have been working on a plugin for Godot and want the camera feed of the meta quest 3 a player is using. Below is my function that uses that android camera2 api to attempt to access the camera feed from the quest 3. This, however, only returns a black screen. The goa...
https://stackoverflow.com/questions/79871234/how-to-get-access-to-the-meta-quest-3-camera-feed
android, kotlin, godot, virtual-reality
1,768,830,107
se_79843564
stackoverflow
MOBILE_DEVELOPMENT
App closes immediately on launch after switching launcher icons (Activity class does not exist)
App closes immediately on launch after switching launcher icons (Activity class does not exist) I added multiple launcher icons using activity-alias to dynamically switch the app icon at runtime. But after going to the main activity, the app crashes immediately. I am not able to understand what to do. This is my Activ...
https://stackoverflow.com/questions/79843564/app-closes-immediately-on-launch-after-switching-launcher-icons-activity-class
android, kotlin, android-activity
1,765,420,778
se_79870424
stackoverflow
MOBILE_DEVELOPMENT
Product price parsing on Wildberries using Kotlin (In the Android app)
Product price parsing on Wildberries using Kotlin (In the Android app) I need to extract the price of the Wildberries product (Preferably this one: https://www.wildberries.ru/catalog/474837861/detail.aspx ). I'm doing this on the Kotlin for Android app. I tried to do this through Jsoup, WebView, simulating the browser...
https://stackoverflow.com/questions/79870424/product-price-parsing-on-wildberries-using-kotlin-in-the-android-app
android, kotlin, webview, jsoup
1,768,725,133
se_79682460
stackoverflow
MOBILE_DEVELOPMENT
How can I achieve the same effects as rememberSystemUiController since it has been deprecated?
How can I achieve the same effects as rememberSystemUiController since it has been deprecated? I was upgrading my version of libraries in my Android project and I saw that rememberSystemUiController() is deprecated. I was doing like this to make the status and navigation bar green: val systemUiController = rememberSys...
https://stackoverflow.com/questions/79682460/how-can-i-achieve-the-same-effects-as-remembersystemuicontroller-since-it-has-be
android, kotlin, android-jetpack-compose, deprecated
1,751,056,401
se_79864393
stackoverflow
MOBILE_DEVELOPMENT
Fragment visibility issue: PlaylistsFragment shows blank screen after navigating back from child fragments
Fragment visibility issue: PlaylistsFragment shows blank screen after navigating back from child fragments I have an audio player app, it's contain a PlaylistsFragment that contains 4 cards which navigate to other fragments (FavouritesFragment, RecentlyPlayedFragment, MostPlayedFragment, RecentlyAddedFragment). When I...
https://stackoverflow.com/questions/79864393/fragment-visibility-issue-playlistsfragment-shows-blank-screen-after-navigating
android, kotlin, android-fragments, fragmentmanager, fragment-backstack
1,767,969,672
se_79868254
stackoverflow
MOBILE_DEVELOPMENT
Unresolved reference &#39;AnchoredDraggableDefaults when generating Release Build
Unresolved reference &#39;AnchoredDraggableDefaults when generating Release Build I am using anchoredDraggable in my project to implement Swipe Control in Compose. I am using Compose BOM 2024.09.00 in my project. When I start a debug build, the project builds well and launches the app from Android Studio. But when I s...
https://stackoverflow.com/questions/79868254/unresolved-reference-anchoreddraggabledefaults-when-generating-release-build
android, kotlin, android-jetpack-compose
1,768,456,468
se_77899680
stackoverflow
MOBILE_DEVELOPMENT
mutableStateListOf is not updating it&#39;s value on changing it
mutableStateListOf is not updating it&#39;s value on changing it I have a todo app that reads to mutableStateListOf data from a view model. When Adding a todoItem it is working properly fine also by deleting it works fine state is getting updated by when I update the object it does not update its state. But when I nav...
https://stackoverflow.com/questions/77899680/mutablestatelistof-is-not-updating-its-value-on-changing-it
kotlin, navigation, android-jetpack-compose, mutablelivedata
1,706,530,799
se_77969988
stackoverflow
MOBILE_DEVELOPMENT
Yandex MapKit. Kotlin. Mark is not displayed
Yandex MapKit. Kotlin. Mark is not displayed I use Yandex MapKit in my app. My mapView is on a fragment. It works well. Zoom also works. But a mark which I added with addPlacemark() is not displayed. I cannot resolve this issue. override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, ...
https://stackoverflow.com/questions/77969988/yandex-mapkit-kotlin-mark-is-not-displayed
android, kotlin, yandex-maps
1,707,501,233
se_79868097
stackoverflow
MOBILE_DEVELOPMENT
Android Play Asset Delivery (install-time) issues in native Kotlin Jetpack Compose app
Android Play Asset Delivery (install-time) issues in native Kotlin Jetpack Compose app Can somoene please explain to me, how to properly setup Play Asset Delivery for my android jetpack compose kotlin native app? I have tried many setups, and tested many things. Here is my current setup: Helper object: import android....
https://stackoverflow.com/questions/79868097/android-play-asset-delivery-install-time-issues-in-native-kotlin-jetpack-compo
kotlin, gradle, sdk, android-jetpack-compose, android-bundle
1,768,424,882
se_79867972
stackoverflow
MOBILE_DEVELOPMENT
How to configure IDEA to look in different source sets depending on the build option?
How to configure IDEA to look in different source sets depending on the build option? This is a Java/Kotlin project. I want to be able to write code with one abstraction in the main and different implementations in multiple source sets. And then run it as a Java application. There are two files in the main source set...
https://stackoverflow.com/questions/79867972/how-to-configure-idea-to-look-in-different-source-sets-depending-on-the-build-op
java, kotlin, android-studio, gradle, intellij-idea
1,768,411,406
se_79867631
stackoverflow
MOBILE_DEVELOPMENT
Android Java + Lombok + Kotlin
Android Java + Lombok + Kotlin I hava an android project in java, and Lombok. I started to convert files to Kotlin, but than I am getting an error, saying there are no getters and setters available for my @Data annotated class. This is what AI told me: What’s happening Lombok generates Java bytecode (getters, setters...
https://stackoverflow.com/questions/79867631/android-java-lombok-kotlin
android, kotlin, lombok
1,768,383,799
se_79864649
stackoverflow
MOBILE_DEVELOPMENT
Spring Boot 4 with Kotlin - Jackson deserialization problems
Spring Boot 4 with Kotlin - Jackson deserialization problems I'm working on a Spring Boot 4.0 API server using Kotlin and JWT authorization. So far I only GET methods are working fine, but POST methods are giving a 403 error. After some debugging I've determined that this is due to a problem with Jackson configuration...
https://stackoverflow.com/questions/79864649/spring-boot-4-with-kotlin-jackson-deserialization-problems
spring, spring-boot, kotlin, spring-security, http-status-code-403
1,767,991,232
se_79861025
stackoverflow
MOBILE_DEVELOPMENT
How to create similar comments section found in youtube, reddit etc in jetpack compose?
How to create similar comments section found in youtube, reddit etc in jetpack compose? I am trying to create the visual and functional comment section in jetpack compose similar to youtube or reddit, see the images below. I have tried a few approaches but cant really replicate the way it contains 1 main line that can...
https://stackoverflow.com/questions/79861025/how-to-create-similar-comments-section-found-in-youtube-reddit-etc-in-jetpack-c
android, kotlin, canvas, android-jetpack-compose, textfield
1,767,634,286
se_79867265
stackoverflow
MOBILE_DEVELOPMENT
Mockk kotlin mocking of java varargs
Mockk kotlin mocking of java varargs I feel like Im missing something obvious but I can't seem to get a unit test to mock out a Jakarta validation call correctly import jakarta.validation.Validator class MyTest : ShouldSpec({ should("work") { val validator = mockk<Validator>() // Pass into test ob...
https://stackoverflow.com/questions/79867265/mockk-kotlin-mocking-of-java-varargs
kotlin, mockk
1,768,331,148
se_76253584
stackoverflow
MOBILE_DEVELOPMENT
Querying Firestore docs with subcollection
Querying Firestore docs with subcollection What is the best way to get a filtered list of docs in root collection, along with all its child docs, that are stored in the subcollection? Ok, I can get a list of root collection docs, what next: should I query every doc subcollection items separately? I can do that (looks ...
https://stackoverflow.com/questions/76253584/querying-firestore-docs-with-subcollection
android, firebase, kotlin, google-cloud-platform, google-cloud-firestore
1,684,149,962
se_79660868
stackoverflow
MOBILE_DEVELOPMENT
How can I add a &quot;Date&quot; object to a Kotlin &quot;JSONObject&quot; to push to MongoDB?
How can I add a &quot;Date&quot; object to a Kotlin &quot;JSONObject&quot; to push to MongoDB? I have a Kotlin file that creates a JSONObject. This object is supposed to consist of strings and dates. However, when I push a date into the JSONObject, it is represented as a string (and not a "Date"). Here is an example ...
https://stackoverflow.com/questions/79660868/how-can-i-add-a-date-object-to-a-kotlin-jsonobject-to-push-to-mongodb
json, mongodb, kotlin, date
1,749,574,966
se_79867043
stackoverflow
MOBILE_DEVELOPMENT
Split kotlin function for immediate and suspend parts
Split kotlin function for immediate and suspend parts I have a kotlin suspend function (for example, foo) that has a code that should be run and waited by a code that calls foo, and a code that should be run then in background and not waited by a code that calls foo. An example code: class A { companion object { ...
https://stackoverflow.com/questions/79867043/split-kotlin-function-for-immediate-and-suspend-parts
kotlin, kotlin-coroutines
1,768,315,906
se_53749357
stackoverflow
MOBILE_DEVELOPMENT
Idiomatic way to create n-ary cartesian product (combinations of several sets of parameters)
Idiomatic way to create n-ary cartesian product (combinations of several sets of parameters) To create all possible combinations of two sets of parameters and perform an action on them, you can do: setOf(foo, bar, baz).forEach { a -> setOf(0, 1).forEach { b -> /* use a and b */ } } However, if you h...
https://stackoverflow.com/questions/53749357/idiomatic-way-to-create-n-ary-cartesian-product-combinations-of-several-sets-of
kotlin, set, cartesian-product, idioms
1,544,639,900
se_79866854
stackoverflow
MOBILE_DEVELOPMENT
Api integration not working in custom keyboard in flutter android
Api integration not working in custom keyboard in flutter android This is the big issue i am facing and tried to research everywhere but not working for me please if anyone can resolve it for me I simply tried to call api in the custom keyboard like when text is selected and tap on any button for ex- Check grammer the...
https://stackoverflow.com/questions/79866854/api-integration-not-working-in-custom-keyboard-in-flutter-android
android, flutter, kotlin, dart, keyboard
1,768,300,900
se_79546939
stackoverflow
MOBILE_DEVELOPMENT
How to make shadows in Android uniform across the screen?
How to make shadows in Android uniform across the screen? screenshot As you can see in the image the lower the card is on the screen the more prominent the shadow it has. Here is the code that was used to create this screenshot: Column( modifier = modifier .fillMaxSize() .background...
https://stackoverflow.com/questions/79546939/how-to-make-shadows-in-android-uniform-across-the-screen
android, kotlin, android-jetpack-compose
1,743,443,460
se_79553058
stackoverflow
MOBILE_DEVELOPMENT
Animating items in a LazyVerticalGrid
Animating items in a LazyVerticalGrid I have a List<List<Thing>> and show each list in separate items in my lazyVerticalGrid as they have different layouts. The list can be filtered to less items and should be removed from the LazyVerticalGrid. I have done two different implementations: With FilteredList iteration: L...
https://stackoverflow.com/questions/79553058/animating-items-in-a-lazyverticalgrid
android, kotlin, animation, android-jetpack-compose
1,743,686,392
se_79609204
stackoverflow
MOBILE_DEVELOPMENT
Compose Multiplatform WKWebView iOS scoll not working
Compose Multiplatform WKWebView iOS scoll not working I am trying to set scrolling on WKWebView used in Kotlin Multiplatform, but it never scrolls. Any Ideas please? To scroll, the documentation says use: scrollView.scrollEnabled = true scrollView.bounces = true But this does not work. Full code below import android...
https://stackoverflow.com/questions/79609204/compose-multiplatform-wkwebview-ios-scoll-not-working
ios, kotlin, compose-multiplatform
1,746,552,730
se_79624035
stackoverflow
MOBILE_DEVELOPMENT
How to use startTransfer for onDragStart in Jetpack Compose 1.8.0 for Desktop?
How to use startTransfer for onDragStart in Jetpack Compose 1.8.0 for Desktop? The code in https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-drag-drop.html does not work. It still uses startTransfer(), and in Jetpack Compose 1.8.0 it does not work the same anymore, but I can not find a migration guide. P...
https://stackoverflow.com/questions/79624035/how-to-use-starttransfer-for-ondragstart-in-jetpack-compose-1-8-0-for-desktop
kotlin, kotlin-multiplatform, compose-multiplatform
1,747,335,314
se_79632175
stackoverflow
MOBILE_DEVELOPMENT
How to change the size of multiple Composable elements at once without triggering recomposition without using animate*AsState?
How to change the size of multiple Composable elements at once without triggering recomposition without using animate*AsState? I'm using Jetpack Compose and have a LazyColumn that displays a list of Card items. When the user performs a onLongClick on one of the cards, a selection mode is triggered: A selection icon ap...
https://stackoverflow.com/questions/79632175/how-to-change-the-size-of-multiple-composable-elements-at-once-without-triggerin
kotlin, animation, android-jetpack-compose, lazycolumn
1,747,836,658