Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Currently developing Android app on Android Studio in Kotlin. I'm new to the recent Android development. Some articles say when I use MutableStateFlow and collections like MutableList, I should assign ...
Pytan's user avatar
  • 1,796
0 votes
0 answers
22 views

In the example below, if I try to turn val x into val (x,y) IDE complains vigorously. If I try to make the return an explicit pair for the val (p,q) assignment it get the same errors. I do not ...
Mike Hanafey's user avatar
  • 5,643
-1 votes
0 answers
23 views

I am integrating the Mesibo Android SDK (version 2.7.19) into my Kotlin application. I need to implement the Mesibo.MessageListener interface to receive real-time messages, but I am facing a ...
user3606728's user avatar
0 votes
0 answers
54 views

I'm trying to provision an Android Device Admin app on a completely fresh device using a QR code. Previously, I encountered an error about missing components, but now the app fails with a checksum ...
Rasal's user avatar
  • 1
Advice
1 vote
2 replies
51 views

I have a old laptop and I started my journey in flutter .The problem is with flutter build .every time I run flutter build command firstly it takes much time I also tried to change my local. ...
PrimeDevs's user avatar
1 vote
1 answer
42 views

I'm trying to parse the response from OpenAI transcription API with streaming enabled. The request is: curl https://api.openai.com/v1/audio/transcriptions \ -H "Authorization: Bearer $...
dr.apk's user avatar
  • 11
0 votes
0 answers
39 views

I have two flows: activityState and activityUiState. I need the activityUiState to be of type MutableStateFlow, so I'm using the activityState as a Flow to update the value of the activityUiState. The ...
Joyce Opio's user avatar
-1 votes
1 answer
57 views

In Jetpack Compose with MVVM, I have a parent screen that contains 3 child screens. Navigation is used to move between the child screens. Each child screen can generate a PDF in different ways: One ...
NullPointerException's user avatar
0 votes
0 answers
48 views

I realized that Kotlin is missing a built-in event mechanism similar to what we have in C#. So I tried to implement my own and ran into a problem that can easily lead to memory leaks. My original idea ...
Yan's user avatar
  • 1,746
0 votes
0 answers
27 views

I have the following class that I am using as a dynamodb item in Kotlin @DynamoDbBean data class Transaction( @get:DynamoDbPartitionKey val userId: Int, @get:DynamoDbSortKey val ...
Salil Surendran's user avatar
0 votes
1 answer
50 views

After upgrading my Kotlin application from Spring Boot 3.5.8 to Spring Boot 4.0.0, I get a lot of compiler errors Type argument is not within its bounds: must be subtype of 'Any'. How is it possible ...
Honza Zidek's user avatar
  • 21.8k
0 votes
0 answers
50 views

I'm using an old version of Android Studio, 3.1.6. This error appears when the gradle project sync failed. I also have a new version of android studio installed, I dont know if this could be related, ...
sii desarrollo2's user avatar
1 vote
1 answer
67 views

I was under the impression that the value returned by View.getWidth() includes padding in it. I don't think I'm hallucinating things - a common line of code that Android developers write is something ...
riamse's user avatar
  • 371
3 votes
1 answer
74 views

I have a scenario where I am implementing an interface that requires a function: interface I { fun exec(s: String): Int } and the function that I want to use is already defined somewhere else: fun ...
Jonny's user avatar
  • 335
-1 votes
0 answers
55 views

I'm migrating a Kotlin + Spring WebFlux application from Spring Boot 2.5.x to Spring Boot 3.5.x, and several controller endpoints that used to work now consistently fail with ClassCastException. 🔍 ...
akagami's user avatar
  • 15
1 vote
0 answers
34 views

I’m implementing an Android Auto navigation app using the Android for Cars App Library in Kotlin. The app runs on Android Auto and shows the NavigationTemplate with the map, but the routing / maneuver ...
draxex's user avatar
  • 89
3 votes
1 answer
60 views

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!&...
msosa's user avatar
  • 33
0 votes
0 answers
48 views

Please check for me if the code is correct, the function call position is reasonable. Because there is currently a problem that the navigation sound when starting Navigation is sometimes absent. ...
Đoàn Văn Quyết's user avatar
1 vote
0 answers
69 views

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> { ...
Hantsy's user avatar
  • 9,611
0 votes
0 answers
44 views

I am working on a "simple" Android augmented reality application. I’m very new to Android programming, although I’ve been in software development for decades, particularly Python, and C/C++ ...
nomad's user avatar
  • 1
0 votes
0 answers
74 views

I’m using androidx.browser.customtabs with a CustomTabsIntent to open a webpage inside my Android app. Chrome shows a minimize button (a small arrow/down icon) in the Custom Tab UI, allowing the user ...
user3561614's user avatar
  • 1,094
2 votes
1 answer
58 views

Imagine something like this: class FileModel: ViewModel() { private val _state: MutableStateFlow<FileState> = MutableStateFlow(initialState) val state: StateFlow<FileState> = ...
NearTheMoon's user avatar
-1 votes
0 answers
110 views

Everytime I try to run the app in Android Studio, this error appears. java.lang.AbstractMethodError: Receiver class androidx.room.migration.bundle.FieldBundle$$serializer does not define or inherit ...
Adli Hanafi Rosli's user avatar
-2 votes
1 answer
75 views

I have disabled ripple effect in my entire project using CompositionLocalProvider. @Composable fun SpotifyTheme( content: @Composable () -> Unit, ) { val colorScheme = colorScheme ...
Fatima Jamal's user avatar
0 votes
1 answer
50 views

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-...
ThN's user avatar
  • 3,284
0 votes
1 answer
59 views

When using com.google.maps.android:maps-compose in version 6.12.2 I get the following error building the project: org.jetbrains.kotlin.util.FileAnalysisException: While analysing <redacted>/...
Eklavya's user avatar
  • 11
-1 votes
0 answers
44 views

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. ...
Halil İbrahim Karacan's user avatar
0 votes
0 answers
43 views

I'm using Kotlin + Spring Boot 3.4.1 with spring-boot-starter-data-elasticsearch and Elasticsearch 8.12.2. Existing document: @Document(indexName = "crashes_summary") data class CrashSummary(...
Ozgur Baykal's user avatar
0 votes
0 answers
38 views

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 ...
Sanket's user avatar
  • 11
Best practices
3 votes
0 replies
36 views

Let's say I have Worker class and I want to do long running tasks in the background until user stops it or it is cancelled. It changes state of the class while doing the work and I want to write tests ...
Domz's user avatar
  • 11
2 votes
2 answers
120 views

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 ...
infoMining's user avatar
Advice
1 vote
1 replies
60 views

I am trying to make a custom overlay for my application that will hide the screen if any screen share or unauthorized recording of my app is running. The problem is, that I am trying to avoid using ...
The-Pro Gamer's user avatar
0 votes
0 answers
71 views

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 ...
Repzi's user avatar
  • 11
0 votes
0 answers
31 views

Maybe I'm doing something wrong but this seems very strange to me took me a while to track down the cause but basically ViewModels are getting corrupted whenusing popBackStack or swipe left, vm's are ...
Neil Pepper's user avatar
3 votes
1 answer
91 views

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 : ...
Benjamin K's user avatar
3 votes
1 answer
81 views

I am trying to understand the getOrElse() function of arrow-kt. I want to create a simple function that takes a list of strings, filters them, and returns the first matching value as an Option<...
pbuchheit's user avatar
  • 1,839
0 votes
1 answer
32 views

I defined these simple models @NodeEntity(label = "Api") class Api { @Id @Property(name = "name") var name: String = "name" @Suppress("unused") ...
Patrice Conil's user avatar
Advice
0 votes
2 replies
49 views

I confused why my apps is lagging when I scroll down to this seat layout, what's wrong with my code? Can somebody tell me how can I improve the performance. Here is my code that I used for to create ...
Ahmad Zaqi's user avatar
1 vote
0 answers
48 views

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 '...
coolzzz's user avatar
-3 votes
0 answers
49 views

I'm using Kotlin and Compose, and I can't figure how to get the current location once via only GPS. I don't want to use Fused Location Provider. The location doesn't have to be precise and it's not ...
user26376492's user avatar
1 vote
1 answer
79 views

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 ....
pbuchheit's user avatar
  • 1,839
2 votes
2 answers
130 views

Kotlin compiler is located in C:\kotlinc\bin, when trying to run any script that is located in a path with space - it fails with message InvalidPathException: Illegal char <:> at index 2: /H:/My%...
Vadym Borys's user avatar
0 votes
0 answers
32 views

in my Spring WebFlux project, I cache endpoints with specific annotations at application startup time using the following DTO. data class ExplorerResult<T>( override val supportedPaths: Set&...
Burak Erdem's user avatar
0 votes
0 answers
49 views

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 = &...
mvasileva's user avatar
0 votes
1 answer
69 views

I'm struggling with my MQTT clients to subscribe to a topic without having the topic subscribed multiple times after the client runs for a while. (I also have an issue with the clients not processing ...
waldrabe's user avatar
  • 303
-2 votes
1 answer
114 views

I'm having trouble with the progress indication of the LinearProgressIndicator when its height is increased: The progress is very small (1%), but the second LinearProgressIndicator shows a much ...
Daniel Hopkins's user avatar
0 votes
0 answers
74 views

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 ...
Supra Bob's user avatar
0 votes
1 answer
40 views

I have an activityUiState (of type ActivityUiState) object which has a list of sub-activities (of type ActivityUiState as well) and a list of voice notes. I'm trying to populate the activityUiState ...
Joyce Opio's user avatar
0 votes
2 answers
67 views

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....
pnkj's user avatar
  • 528
0 votes
0 answers
72 views

im using modal bottom sheet in jetpack compose, even though im setting navigation bar color to transparent, when bottom sheet comes up, the black overlay is comes up on navigation bar, how can i hide ...
Ehsan Narmani's user avatar

1
2 3 4 5
1958