97,828 questions
0
votes
0
answers
21
views
Android Picture-in-Picture: How to handle close (X) button action in PiP mode?
I’m developing an Android application using Jetpack Compose. I have a screen with a video player that supports Picture-in-Picture (PiP) mode. Entering PiP works correctly and the video continues ...
-5
votes
0
answers
20
views
This does not show the design, how do I solve it,with jetpack new latest Android Studio Otter 2 Feature Drop (version 2025.2.2) [closed]
This does not show the design, how do I solve it ,with jetpack new latest Android Studio Otter 2 Feature Drop (version 2025.2.2).
-4
votes
0
answers
54
views
Compiling a Jetpack Compose Desktop app into .exe [closed]
I am trying to build a basic compose app (literally the basic one you get from the kotlin multiplatform wizard) into an .exe. I tried whatever methods Claude gave me, but nothing worked, I ended up ...
0
votes
1
answer
51
views
Getting "None of the following candidates is applicable" when trying to use LiveData list in itemsIndexed in LazyColumn
Relvant code in ViewModel:
val allFoods: LiveData<List<Food>> = repository.allFoods.asLiveData()
and MainActivity:
val foods = foodViewModel.allFoods.observeAsState(listOf())
...
0
votes
0
answers
31
views
Android to WearOS data event fails when phone app is closed
I'm trying to set up an authentication flow on a WearOS app where the companion phone app is responsible for logging in at which point the watch app can simply request the authentication token via a ...
3
votes
1
answer
58
views
Value classes as varargs in Kotlin
I just wanted to write an simple function, that takes multiple kotlin.time.Durations as vararg and wondered about the compiler error:
fun foo(vararg durations: kotlin.time.Duration) {
//...
}
The ...
Best practices
0
votes
1
replies
37
views
How do you create video feeds with poster in Kotlin Multiplatform?
I’m developing a Kotlin Multiplatform application using Compose Multiplatform. I’m consuming an API that returns a list of images and videos, and for each video I want to display a static poster image ...
3
votes
0
answers
70
views
TagLib reading slows down after ~1600 items
I have an app getting metadata from a list of songs using TagLib.
It first gets the song id via MediaStore, and send fd to TagLib which dups it and uses it to open a stream to get the metadata and ...
3
votes
0
answers
45
views
:kotlinWasmNpmInstall and :kotlinNpmInstall can't proceed to find dependencies
After setting up my project with Compose Multiplatform Wizard, I successfully ran the desktop version, but had issue with the web version.
When I try to run :kotlinWasmNpmInstall and :kotlinNpmInstall,...
3
votes
1
answer
70
views
DDD Aggregate Root in Kotlin: data class + copy() vs regular class? [closed]
I’m designing a DDD Aggregate Root in Kotlin and I’m unsure which approach is more appropriate in practice.
I’ve seen two common styles:
Immutable aggregate using data class + copy()
Shown in the ...
0
votes
1
answer
193
views
+100
Can't capture every emittion from StateFlow when testing with Turbine
I'm trying to test my viewmodels that exposes a public StateFlow via stateIn operator:
class HomeViewModel @Inject constructor(...) : ViewModel() {
private val _uiState: MutableStateFlow<State&...
-2
votes
0
answers
104
views
Why does the Spring AI MCP Server not use the Kotlin Jackson Module for the deserialization of tool parameters [closed]
Background
I'm trying to setup a MCP tool on my Spring AI MCP server with an input parameter that should be deserialized into a Kotlin data class. For this to work, I need to use the Jackson Kotlin ...
0
votes
0
answers
52
views
Android Filament shows my grid only green
I'm trying to show a grid with different elevations depending on "y" value, but I only see "green" color.
I've tried the following:
adding UV1
custom0
changing the figure’s scale
...
-2
votes
0
answers
79
views
Block commits and PR merges based on OpenAPI spec status (draft/master) [closed]
We’re introducing OpenAPI into our project, and these OpenAPI specifications will have statuses: "draft" and "master".
"Draft" means the version isn’t final yet, but it’...
0
votes
1
answer
89
views
SQLite fails to find newly inserted row [closed]
I'm using SQLite to track Fabrics and create projects that use those Fabrics. Two tables point to each other so Fabrics knows what projects they belong to and projects know what Fabrics are a part of ...