97,688 questions
Best practices
2
votes
1
replies
53
views
Best practices for DTO mapping in jOOQ 3.20 + Kotlin Spring boot Web Apps
I recently started using jOOQ, and I absolutely love it. I really appreciate how intuitive it is writing jOOQ code feels exactly like writing raw MySQL
However, as a beginner, I’m struggling to find ...
2
votes
0
answers
61
views
TextAlign.Justify only works on the emulator, not on a physical device
why are all the lines (not just the last line of the paragraph) aligned to the left on a real device, while on a virtual device they are aligned to the width of the screen except for the last one (as ...
Best practices
0
votes
2
replies
34
views
How to make sure users read and modify only their own data in Supabase?
I'm connecting an Android app to Supabase. The Supabase project includes users and tasks tables. I would like to allow users to read, update and delete their own tasks only. From what I understand, ...
0
votes
0
answers
43
views
AdMob test ads not showing on Android (HTTP 403 error on load)
I am integrating AdMob into my Android application, but ads are not loading at all, even when using Google’s test ad units.
I am receiving the following error in Logcat:
onAdFailedToLoad: Received ...
-3
votes
0
answers
68
views
Trying to understand the activity lifecycle of android [closed]
I am writing a simple pressure sensing android app that uses android 13+. The app senses pressure, and keeps track of it in a text file.
Not able to understand if it uses Java awt to manage its ...
0
votes
1
answer
49
views
Spring Boot OAuth2ResourceServer Excluding Paths (Cloudflare Turnstile)
I have a Spring Boot REST API written in Kotlin using Keycloak with Spring Security for authentication and authorization. I want to expose one endpoint publicly but protect it with Cloudflare ...
Advice
0
votes
6
replies
90
views
In Android with Kotlin, is there any way to create a custom element with XML that can contain a child in a specific place?
I’ve been trying to create a custom CardView with a title and below the title any type of content, but, when I try overriding addView in the Kotlin class of the custom element to redirect the child, ...
Advice
0
votes
6
replies
97
views
How to properly compress images for recycler view
I have a recycler view displaying multiple images\details from a SQL DB. I have tossed a few ideas back and forth about how to best display the images but I've run into a couple issues.
Initially I ...
0
votes
1
answer
70
views
How to convert an API response into a Kotlin Flow
I'm connecting my ViewModel to the Supabase CRUD methods. I have defined:
a sealed class to hold the API response:
sealed class ApiResponse<out R> {
data class Success<out R>(val data:...
0
votes
0
answers
45
views
How Can My App React to Power Connecting/Disconnecting Even When Closed?
I have tried creating a context-registered receiver following the docs and other examples on StackOverflow, but for some reason none of these logs ever fire. Not when the app is open, not when it's ...
0
votes
2
answers
57
views
YouTube embedded playback in Android Kotlin app fails with error 152-4 even though onReady fires Body
I am building an Android education app in Kotlin where lessons are organized by course, grade, and chapter, and videos are played from YouTube.
To isolate the issue, I created a fresh minimal Android ...
0
votes
1
answer
87
views
Rollback not working as expected or are there some constraints? [closed]
I have a function where I perform a transaction. When some conditions are fullfilled, I would like to perform rollback. Unfortunately, it is not working in this way. If I call the rollback directly, ...
0
votes
0
answers
66
views
Android: Cannot use AudioRecord and SpeechRecognizer together (microphone conflict) but works on iOS
I am building a Flutter app with native Android code where I:
Record audio using AudioRecord
Perform speech-to-text using Vosk (offline recognition)
This works fine individually, but when I try to:
...
4
votes
1
answer
73
views
How to access a repository from a Worker created by a Broadcast Receiver?
I have a repository I create in the onCreate method of my application class. I also have a manifest-declared Broadcast Receiver which creates a Coroutine Worker which I would like to call a method ...
0
votes
1
answer
73
views
Why does accessing DataStore's Flows block indefinitely?
I am developing an app that's primary function is to talk to a web server when the user presses a button and then intermittently in the background while the app may be closed. I'm currently trying to ...