97,878 questions
0
votes
0
answers
30
views
Accessiblity not clicking on "Force stop" at all
I can verify that onAccessibilityEvent and onServiceConnected functions are triggered, but nothing expected happens.
Here is my AndroidManifest.XML
<?xml version="1.0" encoding="utf-...
0
votes
0
answers
32
views
LazyColumn flingBehavior problem in Jetpack Compose
I used the following code in Jetpack Compose to position items in the center of the screen and I succeeded, but when I click on the item, the item moves down and the flingBehavior effect disappears. ...
0
votes
0
answers
32
views
Error in executing credential manager api [closed]
I am trying to execute camara number verification 2.0.0 in my app. Currently I am stuck about how the call is going to be to the mobile os so that it trigger request to entitlement server for the ...
2
votes
2
answers
102
views
Difference in Double representation between Kotlin and Swift
In Kotlin, if you do println(String.format("%.17f", 10.45)), you will see 10.45000000000000000 in the output.
In Swift, if you do print(String(format: "%.17f", 10.45)) you will see ...
-1
votes
0
answers
55
views
Push Notification on Flutter Mobile Apps [closed]
I am developing 2 mobile applications (main & admin) using Flutter for my client and this is my very first time developing a mobile apps. I need help with push notification on both apps because I ...
2
votes
0
answers
69
views
Does combine conflate flows?
When I use combine() on two flow, it's not supposed to conflate/skip values. But when I collect a combine of 2 flows in a Coroutine, some values are randomly skipped.
Link to the kotlin playground : ...
0
votes
0
answers
27
views
When I load all NodeEntity entities with depth = 2 and store one without depth an inconsistency appears. What have I misunderstood?
I defined these simple models
@NodeEntity(label = "Api")
class Api {
@Id
@Property(name = "name")
var name: String = "name"
@Suppress("unused")
...
1
vote
0
answers
33
views
Hilt - java.lang.String com.squareup.javapoet.ClassName.canonicalName() [closed]
I'm learning Android development and decided to add Dagger Hilt to my project. I've been struggling for a week with the `:app:hiltAggregateDepsDebug` task error.
It throws: `Unable to find method '...
1
vote
1
answer
70
views
Replacing Arrow's deprecated orElse with getOrElse doesn't work [closed]
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
....
-2
votes
1
answer
62
views
How to prevent Dropdown view from being pushed [closed]
problem gifAs you can see in the gif, when I drop down, the view below is pushed out.
I want the dropdown to be above the view below without being pushed out. How can I do this?
In particular, I'd ...
0
votes
0
answers
45
views
How to keep a specific LazyColumn item visible when the keyboard opens?
I have a bottom sheet used for search, and it has two UI states. Both states share the same LazyColumn.
State 1:
LazyColumn {
item { Row { ... } } // search categories
item { Text(text = &...
-2
votes
0
answers
86
views
How to create horizontally scrolling category chips in Jetpack Compose like this UI? [closed]
I am trying to build a horizontally scrolling list of category chips in Jetpack Compose, similar to this design:
I want the categories to:
scroll horizontally
look like rounded chips
highlight the ...
0
votes
0
answers
65
views
How to make a custom notification full-width?
I'm trying to create a full-width custom notification for my Flutter app on Android.
The problem is that the notification always appears centered with large horizontal margins, even though my layout ...
0
votes
2
answers
64
views
How to load SVG content images(not url) using Coil on Android
For example, the SVG content obtained from the web is:
<svg t="1717950268208" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3....
0
votes
0
answers
36
views
React Native Android: How to correctly detect when another app is opened using AccessibilityService?
I’m building a React Native Android app where I need to track whenever the user opens another app (e.g., YouTube, Instagram, etc.).
I am using a custom AccessibilityService, but the event for ...
0
votes
1
answer
57
views
Twilio Voice React Native — App Crashes When Initiating Outgoing Call (`getMainActivityClass()` Returns Null)
After resolving a startup crash, I’m now facing a new crash when attempting to initiate an outgoing call using @twilio/voice-react-native-sdk.
When I call:
Voice.connect(...)
the app crashes with the ...
0
votes
1
answer
52
views
Does enableEdgeToEdge() override windowOptOutEdgeToEdgeEnforcement flag?
I'm working with Android 15's edge-to-edge enforcement and need clarification on how enableEdgeToEdge() interacts with the windowOptOutEdgeToEdgeEnforcement theme attribute.
Setup
In my theme:
<...
0
votes
2
answers
54
views
Why is my continuous flow test code flaky?
I am trying to test the number of times a Flow is collected -
runTest {
var count = 0
backgroundScope.launch(UnconfinedTestDispatcher(testScheduler)) {
dao.getEntities().collect {
...
Best practices
1
vote
0
replies
65
views
Kotlin Exposed SQL query data with children - N+1 issue
Currently, we have a lot of code like this one to query data inside our repositories:
database.suspendedTransaction {
Items
.selectAll()
.where { Items.userId eq userId }
....
0
votes
0
answers
26
views
Zombie deeplink Intent reopens from systems overview
Steps to reproduce:
notification --[intent]--> ...Annoucement Details with Pin Validation --[back]--> home screen
--[SYSTEM nav bar back]--> exit app --[system bar overview reopen]--> {!!!...
Advice
1
vote
3
replies
34
views
What dependency for Swagger/OpenApi to work in Kotlin and WebFlux Spring Boot application?
I tried a lot of different options, but I cannot find the right dependency that works with Kotlin ans WebFlux simulatneously. Which one should I use? Is it possible to have this setup?
0
votes
0
answers
39
views
Mobile screen gets pushed down when View appears above visible screen after event
Project is using XML / Kotlin. Issue is with a nested scroll view or perhaps screen management in general.
NestedScrollView
Child 1 (hidden)
Child 2
Child 3
Child 4 (screen is here)
Clicking ...
2
votes
0
answers
70
views
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 ...
Best practices
0
votes
1
replies
54
views
Wrap function result in Mono.defer
In which cases does it make sense to wrap the result of a function that returns a Mono in Mono.defer, when assigning it to a variable and using it later?
F.e.
fun getMono(): Mono<Int> // some ...
2
votes
2
answers
105
views
Only first DAO Flow of Room database returns values
I want to retrieve a specific column from my Android ROOM Database but it kept returning an empty list.
Here is the code on my DAO interface:
@Query("SELECT * FROM expense_table ORDER BY category ...