97,806 questions
- Bountied 1
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
5
views
Start Service from BroadcastReceiver with BLE and PendingIntent
There is a BluetoothTestFragment, where one of the buttons calls startPendingIntentScan(), to use bluetoothAdapter.bluetoothLeScanner.startScan(), and receives callback to BroadcastReceiver via ...
-2
votes
0
answers
58
views
How should images be passed from data layer to UI layer in a multi-module Android app? [closed]
What am i try to say?
I am working on an Android project that strictly follows a multi-module, feature-based layered architecture. The app is divided into features, and each feature has its own UI, ...
0
votes
0
answers
85
views
How to get video thumbnail from content uri?
What am i trying to do?
I working on file sharing app where is a screen where list of video show and i just want to show video thumbnail. I am using jetpack compose and use coil library.
This video ...
2
votes
0
answers
37
views
How to announce page context ("Page X of Y") in HorizontalPager in Jetpack Compose with a11y?
I am building a custom selector component in Jetpack Compose. It consists of a HorizontalPager where each page contains a LazyVerticalGrid of selectable items (acting like Radio Buttons).
The problem: ...
0
votes
0
answers
53
views
How to correctly parse a WAV file for use with Android TTS
I am trying to create a TTS engine for a TTS service i have running locally on my network.
I used an AI to generate the basics and set up the engine with the android system. But i am not able to get ...
0
votes
0
answers
49
views
build.gradle for a multi-module application
I'm a beginner. I study through video tutorials.
We are writing a multi-module Android application. To use the same dependencies in different modules, a separate folder build.src is created in the ...
Best practices
1
vote
1
replies
44
views
How to create a programmatic list of lists
My code loops through rows in SQLite and builds text views / image views to add to linear layouts and displays on screen. My users add fabric manually so each entry would be very different across ...
0
votes
0
answers
55
views
How can I group routes with Spring?
The given project is not using the standard controller way, it's more like 1 handler per controller ( CQRS like )
Each API route should start with the prefix /api
Command routes should follow with /...
2
votes
1
answer
81
views
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 ...
0
votes
1
answer
61
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())
...
user avatar
user30951264
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 ...
4
votes
1
answer
67
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
2
replies
46
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
76
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,...