id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79787692
stackoverflow
MOBILE_DEVELOPMENT
androidx.compose.material.icons unresolved refrence
androidx.compose.material.icons unresolved refrence Edit: it seems like in newer version this library is not supported. i came back to this project after a month and updated some dependencies and agp, synced, everything is working fine just like before but this unresolved refrence error for this specific dep cant be f...
https://stackoverflow.com/questions/79787692/androidx-compose-material-icons-unresolved-refrence
android, kotlin
1,760,130,955
se_79524807
stackoverflow
MOBILE_DEVELOPMENT
Kotlin Multiplatform Room Database Issue on iOS – Unable to Resolve instantiateImpl()
Kotlin Multiplatform Room Database Issue on iOS – Unable to Resolve instantiateImpl() I am working on a Kotlin Multiplatform (KMP) project and trying to implement a Room database that works for both Android and iOS. The Android side is working fine, but I am encountering a build failure on the iOS side with the follow...
https://stackoverflow.com/questions/79524807/kotlin-multiplatform-room-database-issue-on-ios-unable-to-resolve-instantiatei
ios, database, kotlin, android-room, kotlin-multiplatform
1,742,543,256
se_79779847
stackoverflow
MOBILE_DEVELOPMENT
How can I clear focus from TextInputEditText when tapped anywhere else on the screen
How can I clear focus from TextInputEditText when tapped anywhere else on the screen I have this TextInputEditText in which the cursor remains visible even when I tap somewhere else on the screen. Is there any way to make the clearFocus() applicable for whole screen? <com.google.android.material.textfield.TextInputLay...
https://stackoverflow.com/questions/79779847/how-can-i-clear-focus-from-textinputedittext-when-tapped-anywhere-else-on-the-sc
android, xml, kotlin, android-textinputedittext
1,759,309,725
se_45841067
stackoverflow
MOBILE_DEVELOPMENT
What is the best way to define log TAG constant in Kotlin?
What is the best way to define log TAG constant in Kotlin? I'm creating my first Kotlin classes in my Android application. Usually for logging purposes I have a constant with name TAG. What I would do in Java is: private static final String TAG = MyClass.class.getSimpleName(); I know that in Kotlin classes I can cr...
https://stackoverflow.com/questions/45841067/what-is-the-best-way-to-define-log-tag-constant-in-kotlin
java, android, kotlin, constants
1,503,494,728
se_79434238
stackoverflow
MOBILE_DEVELOPMENT
2025: How to disable reCAPTCHA in Firebase phone-authentication (OTP) Android without SafetyNet or DeviceCheck
2025: How to disable reCAPTCHA in Firebase phone-authentication (OTP) Android without SafetyNet or DeviceCheck I know that this question has been posted multiple times, but most of the answers are deprecated or not valid for 2025 since SafetyNet is deprecated for new apps and Android DeviceCheck API is also deprecated...
https://stackoverflow.com/questions/79434238/2025-how-to-disable-recaptcha-in-firebase-phone-authentication-otp-android-wi
android, firebase, kotlin, recaptcha, google-play-console
1,739,388,720
se_79786413
stackoverflow
MOBILE_DEVELOPMENT
Which version of ktlint is being used by ktlint-gradle? Is there a command I can run to find out?
Which version of ktlint is being used by ktlint-gradle? Is there a command I can run to find out? ktlint has just been inflicted onto me, and I'm trying to integrate it into my workflow. I've been using jj as a layer on top of git to make it easier to manage patch series. It lets me take a PR with 10 commits, edit the...
https://stackoverflow.com/questions/79786413/which-version-of-ktlint-is-being-used-by-ktlint-gradle-is-there-a-command-i-can
kotlin, ktlint, jujutsu
1,760,013,254
se_74050270
stackoverflow
MOBILE_DEVELOPMENT
Compose `Icons.Outlined.Star` isn&#39;t outlined
Compose `Icons.Outlined.Star` isn&#39;t outlined I am creating an app in Compose with a really simple navigation bar which displays two items: home and starred: @Composable fun HomeScreen(modifier: Modifier) { var selectedItem by remember { mutableStateOf(0) } val items = listOf( stringResource(id = R...
https://stackoverflow.com/questions/74050270/compose-icons-outlined-star-isnt-outlined
android, kotlin, android-jetpack-compose, android-jetpack
1,665,632,790
se_60271866
stackoverflow
MOBILE_DEVELOPMENT
Android Studio Emulator: Process finished with exit code -1073741515 (0xC0000135)
Android Studio Emulator: Process finished with exit code -1073741515 (0xC0000135) Just started IDE, chose main activity from suggested list and got an error. I have Intel processor and virtualization enabled and also I had some experience with Android Studio on this laptop a few years ago (it worked fine). Can you ple...
https://stackoverflow.com/questions/60271866/android-studio-emulator-process-finished-with-exit-code-1073741515-0xc0000135
java, android, android-studio, kotlin, android-emulator
1,581,982,920
se_79786639
stackoverflow
MOBILE_DEVELOPMENT
Can we expose interfaces from `commonMain` to JS that can be implemented in Typescript?
Can we expose interfaces from `commonMain` to JS that can be implemented in Typescript? TLDR: can we expose interfaces from commonMain to JS that can be implemented in Typescript? Exposing from jsMain appears to work fine: If I expose interface from jsMain with external and @JsExport @OptIn(ExperimentalJsExport::class...
https://stackoverflow.com/questions/79786639/can-we-expose-interfaces-from-commonmain-to-js-that-can-be-implemented-in-type
kotlin, kotlin-multiplatform
1,760,026,780
se_79716091
stackoverflow
MOBILE_DEVELOPMENT
React native secure keyStore: How to check React-Native StrongBox support and store(Hardware-backed) secure keys(Sensitive data) in Android platform
React native secure keyStore: How to check React-Native StrongBox support and store(Hardware-backed) secure keys(Sensitive data) in Android platform I'm building a React Native app and need to store sensitive data securely on Android. On iOS, I use Keychain for hardware-backed storage. On Android, I want to use Strong...
https://stackoverflow.com/questions/79716091/react-native-secure-keystore-how-to-check-react-native-strongbox-support-and-st
android, react-native, kotlin
1,753,580,476
se_79785482
stackoverflow
MOBILE_DEVELOPMENT
Problem dagger with module and component in different libraries
Problem dagger with module and component in different libraries I want to understand how it works. I have application with three libraries: :main :module1 :module2 :di_api Library :main: build.gradle.kts: dependencies { implementationProjects( ":module2", CommonProjectLibraries.DiApi ) im...
https://stackoverflow.com/questions/79785482/problem-dagger-with-module-and-component-in-different-libraries
android, kotlin, gradle, dagger-2, android-multi-module
1,759,928,637
se_77259302
stackoverflow
MOBILE_DEVELOPMENT
How to prevent variables from being optimized out when setting kotlin breakpoints in Android Studio
How to prevent variables from being optimized out when setting kotlin breakpoints in Android Studio I'm trying to check the value of variables while at a breakpoint but Android Studio says my variable "states has been optimised out"[sic]. val states = mutableListOf<UiState>() backgroundScope.launch(Dispatchers...
https://stackoverflow.com/questions/77259302/how-to-prevent-variables-from-being-optimized-out-when-setting-kotlin-breakpoint
android, kotlin, android-studio, debugging, breakpoints
1,696,858,806
se_79785905
stackoverflow
MOBILE_DEVELOPMENT
Jooq setNull sets the column to 0 instead of NULL
Jooq setNull sets the column to 0 instead of NULL I'm using Jooq against an Oracle DB with the Jooq CodeGen and Kotlin Generator. The following code should be setting the GROUP_ID to NULL, but instead it is setting the GROUP_ID = 0. fun removeUserGroup(userId: Long): Int { return dsl .update(USER) ...
https://stackoverflow.com/questions/79785905/jooq-setnull-sets-the-column-to-0-instead-of-null
kotlin, jooq
1,759,963,641
se_79785944
stackoverflow
MOBILE_DEVELOPMENT
How can I display website shortcuts on my android launcher?
How can I display website shortcuts on my android launcher? I'm developing an android launcher with Kotlin in Android Studio, and I'm lacking a way to get the shortcuts browsers like Chrome create when clicking on "Add to Home screen". I know there is a way, since other third party launchers do display them, but I hav...
https://stackoverflow.com/questions/79785944/how-can-i-display-website-shortcuts-on-my-android-launcher
android, kotlin, android-launcher
1,759,969,124
se_79769453
stackoverflow
MOBILE_DEVELOPMENT
Missing recomposition when modifying the ui state
Missing recomposition when modifying the ui state I'm making a little app to save my collection of records, I have a search bar, a menuBar with three categories and each record has a button to add to collection and one to add to wishlist, I try to update the UI in my ViewModel, the searchBar and the menuBar work but t...
https://stackoverflow.com/questions/79769453/missing-recomposition-when-modifying-the-ui-state
android, kotlin, android-jetpack-compose, kotlin-flow
1,758,281,502
se_79784881
stackoverflow
MOBILE_DEVELOPMENT
Android: Intermittent 404 NoSuchKey when downloading the same S3 object from Android (AWS SDK v2)
Android: Intermittent 404 NoSuchKey when downloading the same S3 object from Android (AWS SDK v2) I’m using AWS SDK for Java v2 on Android to download .aac audio files from an S3 bucket. For the same key, downloads are intermittently failing with NoSuchKey (404). If I reopen the app or try again later, the exact same ...
https://stackoverflow.com/questions/79784881/android-intermittent-404-nosuchkey-when-downloading-the-same-s3-object-from-and
android, amazon-web-services, kotlin, amazon-s3
1,759,866,108
se_79784858
stackoverflow
MOBILE_DEVELOPMENT
How to speed up DataStore reads in a Kotlin Multiplatform (KMP) project?
How to speed up DataStore reads in a Kotlin Multiplatform (KMP) project? I’m using Jetpack DataStore (Preferences) in a Kotlin Multiplatform Mobile (KMM/KMP) project to store some user data, including a JSON-serialized object: class DataStoreVM( private val dataStore: DataStore<Preferences> ) : ViewModel() { ...
https://stackoverflow.com/questions/79784858/how-to-speed-up-datastore-reads-in-a-kotlin-multiplatform-kmp-project
android, kotlin, android-jetpack-compose, kotlin-multiplatform, android-jetpack-datastore
1,759,863,789
se_79785043
stackoverflow
MOBILE_DEVELOPMENT
How to securely store JWT in Kotlin Multiplatform (KMP) app for Android and iOS
How to securely store JWT in Kotlin Multiplatform (KMP) app for Android and iOS I’m building a Kotlin Multiplatform (KMP) app that runs on both Android and iOS. Currently, I’m storing the JWT token using Preferences DataStore on Android androidx.datastore.preferences.core However, I’m not sure if this is secure enou...
https://stackoverflow.com/questions/79785043/how-to-securely-store-jwt-in-kotlin-multiplatform-kmp-app-for-android-and-ios
android, kotlin, jwt, android-jetpack-compose, kotlin-multiplatform
1,759,889,748
se_66612383
stackoverflow
MOBILE_DEVELOPMENT
Flutter showing blank cross (X) icons
Flutter showing blank cross (X) icons I got a native android app (maintained by a team). I have added the flutter app to this existing android app. This flutter app is basically a flutter module rather than a flutter project. All I need is to open the flutter module with this existing android native app. But along wit...
https://stackoverflow.com/questions/66612383/flutter-showing-blank-cross-x-icons
android, flutter, kotlin, icons
1,615,631,224
se_79785275
stackoverflow
MOBILE_DEVELOPMENT
androidx.lifecycle.viewmodel.compose.viewModel not found after upgrading to Compose
androidx.lifecycle.viewmodel.compose.viewModel not found after upgrading to Compose I'm upgrading to Compose 1.9. So I've upgraded the following dependencies: androidx-lifecycle = "2.9.4" from 2.8.0 androidx-navigation = "2.9.0" from 2.7.0-alpha06 compose-plugin = "1.9.0" from 1.8.2 jetbrainsCompose = { id = "org.jet...
https://stackoverflow.com/questions/79785275/androidx-lifecycle-viewmodel-compose-viewmodel-not-found-after-upgrading-to-comp
kotlin, compose-multiplatform, androidx-lifecycle
1,759,915,320
se_79784582
stackoverflow
MOBILE_DEVELOPMENT
What is the proper way of closing SSE connections when doing a graceful shutdown in Spring?
What is the proper way of closing SSE connections when doing a graceful shutdown in Spring? I have a small service that handles SSE connections: class SSEService : AutoCloseable { private val emitters: MutableMap<SSEEventType, MutableList<SseEmitter>> = ConcurrentHashMap() private var running = true @PreD...
https://stackoverflow.com/questions/79784582/what-is-the-proper-way-of-closing-sse-connections-when-doing-a-graceful-shutdown
java, spring, spring-boot, kotlin
1,759,842,946
se_77471198
stackoverflow
MOBILE_DEVELOPMENT
kotlinx serializer decode snake case to camel case without serial name
kotlinx serializer decode snake case to camel case without serial name Question Hi I'm new to kotlinx serialization. the json is snake case, and kotlin data class uses camel case. is there a way to parse snake case by using custom serilizer and deserializer? I know how to do... val format = Json { namingStrategy = Jso...
https://stackoverflow.com/questions/77471198/kotlinx-serializer-decode-snake-case-to-camel-case-without-serial-name
kotlin, kotlinx.serialization
1,699,834,826
se_79784133
stackoverflow
MOBILE_DEVELOPMENT
Can&#39;t get permissions for COARSE and FINE Location on Android, target SDK 33
Can&#39;t get permissions for COARSE and FINE Location on Android, target SDK 33 I am trying to make an app in Kotlin targeting Android SDK 33 I want the app to be very minimalist and simple, and as soon as the user opens it, it has a map and be centred on the user's location (I am using OSM for map data). The app als...
https://stackoverflow.com/questions/79784133/cant-get-permissions-for-coarse-and-fine-location-on-android-target-sdk-33
android, kotlin, location, android-permissions, nmea
1,759,793,494
se_46182118
stackoverflow
MOBILE_DEVELOPMENT
JUnit 5 parameterized tests at class level
JUnit 5 parameterized tests at class level Is it possible to use JUnit 5's parameterized new features to run test classes to receive test parameters instead of doing it at method level? With JUnit 4, a runner such as @RunWith(Parameterized::class) plus inheritance could be used to pass an array of parameters to subcla...
https://stackoverflow.com/questions/46182118/junit-5-parameterized-tests-at-class-level
java, kotlin, junit5, junit-jupiter, parameterized-unit-test
1,505,236,402
se_67019262
stackoverflow
MOBILE_DEVELOPMENT
IntelliJ can&#39;t resolve packages from ShadowJar plugin
IntelliJ can&#39;t resolve packages from ShadowJar plugin I am working on a kotlin library for my physics class. It should allow easy calculations with vectors and matrices, and eventually allow to make physics simulations. I am using the glm library for the maths implementation (I am planning to wrap those classes wi...
https://stackoverflow.com/questions/67019262/intellij-cant-resolve-packages-from-shadowjar-plugin
kotlin, gradle, intellij-idea
1,617,963,375
se_63242914
stackoverflow
MOBILE_DEVELOPMENT
Avoid else condition in &#39;When&#39; in kotlin
Avoid else condition in &#39;When&#39; in kotlin As per documentation of When in Kotlin, else is not mandatory if the compiler knows all the values are covered. This is very in case of enums or sealed class but how to do it in case of arrays for numbers 1 to 5 (startRating). private fun starMapping(startRating: Int): ...
https://stackoverflow.com/questions/63242914/avoid-else-condition-in-when-in-kotlin
kotlin, kotlin-when
1,596,529,523
se_79784098
stackoverflow
MOBILE_DEVELOPMENT
How to expose kotlin package `import kotlin.test.Test` for a bazel `kt_jvm_test`
How to expose kotlin package `import kotlin.test.Test` for a bazel `kt_jvm_test` I'm trying to compile a very simple kotlin test file based off of the example at https://kotlinlang.org/docs/jvm-test-using-junit.html#create-a-test in order to prove that my setup in bazel is operating as expected with only the Kotlin ru...
https://stackoverflow.com/questions/79784098/how-to-expose-kotlin-package-import-kotlin-test-test-for-a-bazel-kt-jvm-test
kotlin, unit-testing, bazel
1,759,786,839
se_74203537
stackoverflow
MOBILE_DEVELOPMENT
Kotlin: Line continuation in multiline string?
Kotlin: Line continuation in multiline string? val myQuestion = """ I am creating a multiline string containing paragraphs of text. The text will wrap when put into a TextView. But as you can see, when defining the text in the editor, if I want to avoid newlines mid-paragraph, I need to write really long lines tha...
https://stackoverflow.com/questions/74203537/kotlin-line-continuation-in-multiline-string
kotlin, multiline
1,666,765,934
se_79783825
stackoverflow
MOBILE_DEVELOPMENT
Unresolved reference: implementation&#39; in build.gradle.kts file when adding dependencies
Unresolved reference: implementation&#39; in build.gradle.kts file when adding dependencies I'm new to Android and I'm following this tutorial(https://developer.android.com/develop/connectivity/cronet/start#java) It says to add this dependency in my build.gradle.kts file, it looks like this: // Top-level build file wh...
https://stackoverflow.com/questions/79783825/unresolved-reference-implementation-in-build-gradle-kts-file-when-adding-depen
android, kotlin, android-studio, mobile, dependencies
1,759,763,066
se_53229432
stackoverflow
MOBILE_DEVELOPMENT
String with triple quote inside of string with triple quote
String with triple quote inside of string with triple quote I'm using string with triple quote inside of string with triple quote: fun main(args: Array<String>) { val firstStr = """ OLOLO """.trimIndent() val secondStr = """ $firstStr new added text """.trimIndent() println("The...
https://stackoverflow.com/questions/53229432/string-with-triple-quote-inside-of-string-with-triple-quote
string, kotlin
1,541,780,063
se_78294493
stackoverflow
MOBILE_DEVELOPMENT
Self Signed certificates in kotlin multiplatform compose with ktor
Self Signed certificates in kotlin multiplatform compose with ktor I am currently building an android/ios mobile application with kotlin multiplatform compose. This application uses a django server for it's backend. The server has some self signed certificates that block me from doing request through https. Http reque...
https://stackoverflow.com/questions/78294493/self-signed-certificates-in-kotlin-multiplatform-compose-with-ktor
kotlin, ssl, https, kotlin-multiplatform, ktor-client
1,712,600,963
se_71130748
stackoverflow
MOBILE_DEVELOPMENT
How to schedule recurring notifications in kotlin?
How to schedule recurring notifications in kotlin? I've been looking for this for a couple of hours but I haven't found anything helpful. Right now, I have an activity (called other_recurringreminder) that sets a time (fomartted calendar, HH:mm; string), repetition frequency (int), repetition unit (like minutes, hours...
https://stackoverflow.com/questions/71130748/how-to-schedule-recurring-notifications-in-kotlin
android, android-studio, kotlin, android-notifications
1,644,945,877
se_79783532
stackoverflow
MOBILE_DEVELOPMENT
Cannot emulate AR Scene using SceneView on M1 Pro macOS Tahoe in Android Studio
Cannot emulate AR Scene using SceneView on M1 Pro macOS Tahoe in Android Studio I am trying to emulate AR Device using Android Studio on Apple Silicon M1 Pro macOS Tahoe, but I cannot install x86 emulator Google APIs Intel x86 Atom System Image API Level 27 or later as Google documentation suggested. When I run suppor...
https://stackoverflow.com/questions/79783532/cannot-emulate-ar-scene-using-sceneview-on-m1-pro-macos-tahoe-in-android-studio
kotlin, android-jetpack-compose, augmented-reality, sceneview
1,759,744,048
se_77191498
stackoverflow
MOBILE_DEVELOPMENT
Avoiding line breaks in Inline Text Content in Jetpack Compose
Avoiding line breaks in Inline Text Content in Jetpack Compose I would like to embed some custom icons (Image composable) in some paragraph text (Text composable). This is straightforward enough - this question https://stackoverflow.com/a/67611627/966538 gives an example of how to do this. There is a number directly b...
https://stackoverflow.com/questions/77191498/avoiding-line-breaks-in-inline-text-content-in-jetpack-compose
kotlin, android-jetpack-compose
1,695,859,485
se_59340056
stackoverflow
MOBILE_DEVELOPMENT
Jetpack Compose can&#39;t import Text or setContent anymore
Jetpack Compose can&#39;t import Text or setContent anymore I've been messing around with Jetpack Compose recently and I had gone through the basic tutorial here. Then I started looking at the Jetnewssample project they have. Now I'm ready to start working on my own project but now when I create a new project in the ...
https://stackoverflow.com/questions/59340056/jetpack-compose-cant-import-text-or-setcontent-anymore
android, kotlin, android-jetpack, android-jetpack-compose
1,576,366,282
se_58611070
stackoverflow
MOBILE_DEVELOPMENT
Kotlin Gson with Data Classes
Kotlin Gson with Data Classes I am trying to parse a complex JSON object using Gson. Here are the data classes that are failing: data class Advisor( val students: List<Student>?, ) sealed class Student { data class BusinessMajor(val name: String, val items: List<Courses>) : Student() data class ArtsMa...
https://stackoverflow.com/questions/58611070/kotlin-gson-with-data-classes
json, kotlin, gson, data-class
1,572,364,592
se_79718882
stackoverflow
MOBILE_DEVELOPMENT
The artifact `org.jetbrains.kotlin:kotlin-compiler-embeddable` is present in the build classpath along Kotlin Gradle plugin
The artifact `org.jetbrains.kotlin:kotlin-compiler-embeddable` is present in the build classpath along Kotlin Gradle plugin I just upgraded to Kotlin 2.1.20. After clearing countless build errors, I am down to a warning that I get in every module in my app that says this: The artifact org.jetbrains.kotlin:kotlin-comp...
https://stackoverflow.com/questions/79718882/the-artifact-org-jetbrains-kotlinkotlin-compiler-embeddable-is-present-in-the
android, kotlin, gradle
1,753,803,549
se_79673221
stackoverflow
MOBILE_DEVELOPMENT
Make Java use framework.jar instead of android.jar in an Android Gradle module when both are on the bootstrapClasspath
Make Java use framework.jar instead of android.jar in an Android Gradle module when both are on the bootstrapClasspath I'm working on a multi-module Android project where one of the modules contains both Java and Kotlin packages. This module depends on a custom AOSP framework.jar, which contains hidden/internal APIs. ...
https://stackoverflow.com/questions/79673221/make-java-use-framework-jar-instead-of-android-jar-in-an-android-gradle-module-w
java, android, kotlin
1,750,414,919
se_79782052
stackoverflow
MOBILE_DEVELOPMENT
Change brightness on zkdigimax monitor
Change brightness on zkdigimax monitor I'm using kotlin on my android app, and i have this code to change the screen brightness, when I'm trying it on a tablet or phone, it works fine, but when i try it on a zk digimax monitor (Digital signage 55' - DG03-B1F55), is changing the parameter but the screen brightness isn'...
https://stackoverflow.com/questions/79782052/change-brightness-on-zkdigimax-monitor
android, kotlin, android-jetpack-compose, android-tv
1,759,514,942
se_43790137
stackoverflow
MOBILE_DEVELOPMENT
Why can&#39;t type parameter in Kotlin have any other bounds if it&#39;s bounded by another type parameter?
Why can&#39;t type parameter in Kotlin have any other bounds if it&#39;s bounded by another type parameter? Here is the minimal demo code that shows this problem: interface A fun <T1, T2> test() where T2 : T1, T2 : A {} When I try to compile it, compiler will complain: Error:(81, 25) Kotlin: Type parameter cannot h...
https://stackoverflow.com/questions/43790137/why-cant-type-parameter-in-kotlin-have-any-other-bounds-if-its-bounded-by-anot
types, kotlin
1,493,921,971
se_47969460
stackoverflow
MOBILE_DEVELOPMENT
unable to print multiple Boolean in Kotlin
unable to print multiple Boolean in Kotlin i'm beginning with kotlin language fun main (args:Array<String>){ var flag1:Boolean= true //Explicit declaration var flag2: =false //Implicit declaration println(flag2 + "and " + flag1) println(flag1) println(flag2) } in above code i have declar...
https://stackoverflow.com/questions/47969460/unable-to-print-multiple-boolean-in-kotlin
variables, types, kotlin
1,514,211,712
se_75673923
stackoverflow
MOBILE_DEVELOPMENT
Build config for developing a Gradle Plugin written in Kotlin
Build config for developing a Gradle Plugin written in Kotlin I want to build a Gradle plugin written in Kotlin and publish it to the Gradle Plugin Portal. However, I am not clear about what build config I need to achieve this. There is a lot of confusing information, and strange errors regarding the 'embedded Kotlin'...
https://stackoverflow.com/questions/75673923/build-config-for-developing-a-gradle-plugin-written-in-kotlin
kotlin, gradle, gradle-plugin, gradle-kotlin-dsl
1,678,283,354
se_79781764
stackoverflow
MOBILE_DEVELOPMENT
NavGraph &amp; viewmodel gets reset on each config change
NavGraph &amp; viewmodel gets reset on each config change I’m using a single activity app, where you have a Splash screen using the new splash screen api, keepsplashscreen is used to keep showing the splash screen till the check if the user is logged in or not is finished, if the user is logged in i make the start des...
https://stackoverflow.com/questions/79781764/navgraph-viewmodel-gets-reset-on-each-config-change
android, kotlin, android-view, android-viewmodel
1,759,494,065
se_79781582
stackoverflow
MOBILE_DEVELOPMENT
What is the correct way to send continuous data from a Foreground Service to a ViewModel?
What is the correct way to send continuous data from a Foreground Service to a ViewModel? I'm implementing a foreground service in Android (Kotlin) that handles GPS tracking. The service continuously calculates and must expose these values: Distance traveled, elapsed duration, current speed, and a list of GPS points. ...
https://stackoverflow.com/questions/79781582/what-is-the-correct-way-to-send-continuous-data-from-a-foreground-service-to-a-v
android, kotlin, android-service
1,759,481,415
se_43021816
stackoverflow
MOBILE_DEVELOPMENT
Difference between a thread and a coroutine in Kotlin
Difference between a thread and a coroutine in Kotlin Is there a specific language implementation in Kotlin which differs from another language's implementation of coroutines? What does it mean that a coroutine is like a lightweight thread? What is the difference? Are Kotlin coroutines actually running in parallel (c...
https://stackoverflow.com/questions/43021816/difference-between-a-thread-and-a-coroutine-in-kotlin
multithreading, kotlin, concurrency, kotlin-coroutines, coroutine
1,490,475,057
se_75326373
stackoverflow
MOBILE_DEVELOPMENT
Compose : How do I get the bottom navigation bar height for Material3?
Compose : How do I get the bottom navigation bar height for Material3? I want to get the Material3 Bottom NavigationBar height using code I searched and couldn't find how, i had a workaround of tracing the official code to aprivate and internal obeject of value 80.dp. But i feel using 80.dp in my code might not be th...
https://stackoverflow.com/questions/75326373/compose-how-do-i-get-the-bottom-navigation-bar-height-for-material3
android, kotlin, android-jetpack-compose
1,675,356,425
se_79780678
stackoverflow
MOBILE_DEVELOPMENT
Need to block the back button/gesture on Admob in android 16(target sdk 36)
Need to block the back button/gesture on Admob in android 16(target sdk 36) I have a project where i have implemented google admob + mediation. I am facing an issue where user is able to closae the ad by back press or use the back button/gesture to go back to previous screen from admob's ad(Rewarded Ad). I have figure...
https://stackoverflow.com/questions/79780678/need-to-block-the-back-button-gesture-on-admob-in-android-16target-sdk-36
android, kotlin, admob, unityads, vungle-ads
1,759,388,675
se_78397672
stackoverflow
MOBILE_DEVELOPMENT
LazyColumn lags Jetpack Compose
LazyColumn lags Jetpack Compose I have made simple 30 days app using lazyColumn, but when I launched it on my phone, it has MASSIVE lags. class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { _30Da...
https://stackoverflow.com/questions/78397672/lazycolumn-lags-jetpack-compose
android, kotlin, android-jetpack-compose
1,714,296,069
se_67852367
stackoverflow
MOBILE_DEVELOPMENT
How to get the current padding applied to a modifier in Jetpack Compose?
How to get the current padding applied to a modifier in Jetpack Compose? I am passing a modifier instance to a function like this @Composable fun SomeComposable(modifier : Modifier) { } I want to know the current padding applied to the passed modifier inside the function. How to do this? @Composable fun SomeC...
https://stackoverflow.com/questions/67852367/how-to-get-the-current-padding-applied-to-a-modifier-in-jetpack-compose
android, kotlin, android-jetpack, android-jetpack-compose
1,622,915,088
se_77569103
stackoverflow
MOBILE_DEVELOPMENT
Error with DeepFace library in Chaquopy Android Project
Error with DeepFace library in Chaquopy Android Project I have been trying to run the following snippet of code for deepface for comparing two images containing a face. Python code: face_similarity.py import base64 from io import BytesIO from PIL import Image import numpy as np import cv2 from deepface import DeepFace...
https://stackoverflow.com/questions/77569103/error-with-deepface-library-in-chaquopy-android-project
python, android, kotlin, chaquopy, deepface
1,701,240,570
se_79771579
stackoverflow
MOBILE_DEVELOPMENT
Kotlin slow compile times
Kotlin slow compile times When we want to compile our project, it regularly takes somewhere between 5-8 minutes. This is an issue for our developers as we want to be able to quickly test our changes. More often than not, the "Apply HotSwap" feature from IntelliJ IDEA also does not work, as it crashes out saying it can...
https://stackoverflow.com/questions/79771579/kotlin-slow-compile-times
java, kotlin, gradle
1,758,542,309
se_70216485
stackoverflow
MOBILE_DEVELOPMENT
error: [MissingType]: Element &#39;xxxxx.AppDatabase.room&#39; references a type that is not present
error: [MissingType]: Element &#39;xxxxx.AppDatabase.room&#39; references a type that is not present error: [MissingType]: Element 'xxxxx.AppDatabase.room' references a type that is not present I get the mentioned error in the title when I try to compile my code. It seems that I have a problem with Room which causes t...
https://stackoverflow.com/questions/70216485/error-missingtype-element-xxxxx-appdatabase-room-references-a-type-that-is
android, kotlin, android-room
1,638,544,180
se_79780277
stackoverflow
MOBILE_DEVELOPMENT
Trouble compiling a basic kotlin multiplatform app for ios
Trouble compiling a basic kotlin multiplatform app for ios I've been reworking an android app to make it a compatible with the the kotlin multiplatform framework. After getting stuck I decided to start with a fresh, very basic setup and build out from there. So I created a a project using the kotlin multiplatform wi...
https://stackoverflow.com/questions/79780277/trouble-compiling-a-basic-kotlin-multiplatform-app-for-ios
kotlin, gradle, kotlin-multiplatform
1,759,335,114
se_79779741
stackoverflow
MOBILE_DEVELOPMENT
Apply gradle plugin conditionally based on productFlavor in Kotlin DSL
Apply gradle plugin conditionally based on productFlavor in Kotlin DSL I have two product flavors in my app, one being "global" and "fdroid" the other. I want to add plugin libs.plugins.google.services only to the "global" build. Here's my configuration: plugins { alias(libs.plugins.android.application) alias(...
https://stackoverflow.com/questions/79779741/apply-gradle-plugin-conditionally-based-on-productflavor-in-kotlin-dsl
android, kotlin, gradle, android-gradle-plugin, gradle-kotlin-dsl
1,759,303,309
se_79779944
stackoverflow
MOBILE_DEVELOPMENT
onResume and onPause glitch
onResume and onPause glitch I have app with multiple simple activities, changed using StateFlow. All apps run on only one model of device - Nexgo N62 (POS-terminal, Android 10). I have about 100 devices in the field, all from the same batch. Sometimes i get random reports from users and trace them using logs. I have r...
https://stackoverflow.com/questions/79779944/onresume-and-onpause-glitch
android, kotlin
1,759,315,977
se_62620097
stackoverflow
MOBILE_DEVELOPMENT
Why CallbackFlow is running on main thread
Why CallbackFlow is running on main thread I am using callback flow in my code to retrieve data from Firebase Database. Here is my code @ExperimentalCoroutinesApi suspend fun getUserOrder() = callbackFlow<UserOrder>{ println("Current Thread name is ${Thread.currentThread().name}") databaseRe...
https://stackoverflow.com/questions/62620097/why-callbackflow-is-running-on-main-thread
android, firebase, kotlin, kotlin-coroutines, kotlin-flow
1,593,333,098
se_70037537
stackoverflow
MOBILE_DEVELOPMENT
Proguard Missing classes detected while running R8 after adding package names in proguard-rules.pro
Proguard Missing classes detected while running R8 after adding package names in proguard-rules.pro AGPBI gives this as output: > Task :app:minifyReleaseWithR8 AGPBI: {"kind":"warning","text":"Unexpected reference to missing service class: META-INF/services/reactor.blockhound.integration.BlockHoundIntegration.","sourc...
https://stackoverflow.com/questions/70037537/proguard-missing-classes-detected-while-running-r8-after-adding-package-names-in
android, kotlin, proguard
1,637,337,118
se_79760331
stackoverflow
MOBILE_DEVELOPMENT
BottomNavigationView icons and text Turning White After Library Updates in Android App
BottomNavigationView icons and text Turning White After Library Updates in Android App Edited This problem only happens on API 29 and above. This screenshot shows how it looks on old devices I recently updated my old Android app (a news app) project libraries, but now my BottomNavigationView is showing up as solid wh...
https://stackoverflow.com/questions/79760331/bottomnavigationview-icons-and-text-turning-white-after-library-updates-in-andro
android, kotlin, android-theme, bottomnavigationview, android-bottomnavigationview
1,757,457,055
se_79779346
stackoverflow
MOBILE_DEVELOPMENT
How do I fix &quot;Some Kotlin runtime libraries and &lt;x&gt; other jars have unsupported binary format&quot;
How do I fix &quot;Some Kotlin runtime libraries and &lt;x&gt; other jars have unsupported binary format&quot; Preface: I'm not great at Gradle and I used the Kotlin Multiplatform Wizard in order to create my multiplatform project (for Desktop & Web). Then I downloaded the created project and loaded it into IntelliJ. ...
https://stackoverflow.com/questions/79779346/how-do-i-fix-some-kotlin-runtime-libraries-and-x-other-jars-have-unsupported
kotlin, gradle, gradle-kotlin-dsl
1,759,251,654
se_79779278
stackoverflow
MOBILE_DEVELOPMENT
Gradle tasks for multiple test types
Gradle tasks for multiple test types Our project currently has two types of tests: Tests that communicate with the MySQL test database and tests that don't. The database tests should be run in sequence as they mutate the same database, since having multiple of these tests side by side could cause concurrency issues or...
https://stackoverflow.com/questions/79779278/gradle-tasks-for-multiple-test-types
kotlin, unit-testing, gradle
1,759,246,169
se_79772321
stackoverflow
MOBILE_DEVELOPMENT
Change markers icons when loading KML from file
Change markers icons when loading KML from file In kotlin, I want to load a KML file stored as XML and show it with default icon marker. Here is my actual code: val content = requireContext().openFileInput("map.kml") val layer = KmlLayer(map, content, requireContext()) layer.addLayerToMap() This load the map, and sho...
https://stackoverflow.com/questions/79772321/change-markers-icons-when-loading-kml-from-file
kotlin, google-maps, google-maps-android-api-3
1,758,612,570
se_79778943
stackoverflow
MOBILE_DEVELOPMENT
Android studio throws an error Error code: &#39;UNKNOWN&#39;, message=&#39;Unknown failure: &#39;cmd: Can&#39;t find service: package
Android studio throws an error Error code: &#39;UNKNOWN&#39;, message=&#39;Unknown failure: &#39;cmd: Can&#39;t find service: package enter image description hereI've got a problem with Android Studio. When I run the project it gives me the error "Error running 'app' The application could not be installed. Installatio...
https://stackoverflow.com/questions/79778943/android-studio-throws-an-error-error-code-unknown-message-unknown-failure
kotlin, android-studio
1,759,224,822
se_79778933
stackoverflow
MOBILE_DEVELOPMENT
Android App - Reactive Native - error on opening app on phone
Android App - Reactive Native - error on opening app on phone I had to upgrade a bunch of packages on reactive native to update to google api 35. The app was working before without any issue. When uploading the app to a phone and opening, I'm getting the following error. Logcar error: com.facebook.soloader.SoLoaderDS...
https://stackoverflow.com/questions/79778933/android-app-reactive-native-error-on-opening-app-on-phone
java, android, react-native, kotlin, facebook-graph-api
1,759,224,503
se_79776977
stackoverflow
MOBILE_DEVELOPMENT
Compose Multiplatform: How to lock specific screens to portrait or landscape (Android &amp; iOS)
Compose Multiplatform: How to lock specific screens to portrait or landscape (Android &amp; iOS) I’m building an app with Compose Multiplatform (Kotlin Multiplatform) and I need to control the screen orientation for certain screens. For example: Screen X should always be shown in landscape mode. Screen Y should always...
https://stackoverflow.com/questions/79776977/compose-multiplatform-how-to-lock-specific-screens-to-portrait-or-landscape-an
ios, kotlin, kotlin-multiplatform, compose-multiplatform
1,759,003,835
se_79778128
stackoverflow
MOBILE_DEVELOPMENT
Unable to connect to wifi network. Android M
Unable to connect to wifi network. Android M I know this question was asked before but I followed the code some members said it is working for them. Unfortunately, I don't have the same success. Here is the code: Permissions (Andorid.xml) <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <uses-pe...
https://stackoverflow.com/questions/79778128/unable-to-connect-to-wifi-network-android-m
android, kotlin
1,759,151,140
se_73113518
stackoverflow
MOBILE_DEVELOPMENT
Creating singletons using Initializer&lt;T&gt; vs object
Creating singletons using Initializer&lt;T&gt; vs object Heyo, I'm looking for some advice. I was taking some time to redo a chunk of my code to support dependency injection, and I found the androix.startup App Startup library. It seemed like a great solution for singleton registration, as dependencies and initializat...
https://stackoverflow.com/questions/73113518/creating-singletons-using-initializert-vs-object
android, kotlin, startup
1,658,772,267
se_79777530
stackoverflow
MOBILE_DEVELOPMENT
Camera Preview failure on some cameras
Camera Preview failure on some cameras I am developing a Camera application and at this point I am previewing all cameras. Background: So my device have physical Cameras count of 4. 1 front 3 back. I can log upto 8 camera ids. Progress: I am able to switch between cameras and see the preview from camera id 0 to camera...
https://stackoverflow.com/questions/79777530/camera-preview-failure-on-some-cameras
android, kotlin, native, android-camera2
1,759,085,280
se_79777763
stackoverflow
MOBILE_DEVELOPMENT
MutableLiveData Variable keeps resetting to default after 2nd try
MutableLiveData Variable keeps resetting to default after 2nd try I am trying to make a simple increment/decrement app using MutableLiveData as practice. For Some reason, the value of my textCount keeps resetting back to 0 after incrementing/decrementing. It goes from 0 to 1, then reset to 0. I'm really not sure why. ...
https://stackoverflow.com/questions/79777763/mutablelivedata-variable-keeps-resetting-to-default-after-2nd-try
android, kotlin
1,759,123,184
se_75404210
stackoverflow
MOBILE_DEVELOPMENT
Check your module classpath for missing or conflicting dependencies KMM
Check your module classpath for missing or conflicting dependencies KMM I have a project in Android Studio for Kotlin Multiplatform Mobile (KMM) app using Kotlin. I am able to successfully run and build. However, when I open the project in Android Studio, I see the same error in many of the gradle project files . The ...
https://stackoverflow.com/questions/75404210/check-your-module-classpath-for-missing-or-conflicting-dependencies-kmm
android, kotlin, gradle, build.gradle, kotlin-multiplatform
1,675,975,199
se_79777972
stackoverflow
MOBILE_DEVELOPMENT
Vibration is blocked by cameraX on motorola moto g04
Vibration is blocked by cameraX on motorola moto g04 I have an issue where if I scan a barcode using CameraX and MLKit then try to play a vibration using Vibrator class, the vibration won't play. I figured out that if I call cameraProvider.unbindAll() after the analyzer reads a barcode, then the vibrator will successf...
https://stackoverflow.com/questions/79777972/vibration-is-blocked-by-camerax-on-motorola-moto-g04
android, kotlin, vibration, motorola, android-vibration
1,759,139,393
se_79772432
stackoverflow
MOBILE_DEVELOPMENT
Motorola moto g04 doesn&#39;t vibrate only in my app
Motorola moto g04 doesn&#39;t vibrate only in my app I have an issue where vibration using the Vibrator class does not work only on Motorola Moto g04 device. The app's target SDK is 36, minSDK is 23 and the phone has Android 14 (SDK 34). I did request permissions in the manifest file: <uses-permission android:name="an...
https://stackoverflow.com/questions/79772432/motorola-moto-g04-doesnt-vibrate-only-in-my-app
android, kotlin, vibration, motorola
1,758,620,401
se_79777531
stackoverflow
MOBILE_DEVELOPMENT
Difference between function type with receiver and extension function
Difference between function type with receiver and extension function Consider the following functions: fun Int.ext() { // TODO } fun doSomething(f: Int.() -> Unit) { // TODO } The functional parameter f has the same type as the extension function ext. So, I can do this: doSomething(Int::ext) The question i...
https://stackoverflow.com/questions/79777531/difference-between-function-type-with-receiver-and-extension-function
kotlin, extension-function, kotlin-function-type
1,759,085,349
se_79777557
stackoverflow
MOBILE_DEVELOPMENT
(Kotlin) Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFW
(Kotlin) Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFW I'm trying to create a window in Kotlin using the LWJGL3 library. The code compiles, IntelliJ sees no issue. However when I run it expecting it to return either a 0 or a 1 to be printed out, I instead get the error messag...
https://stackoverflow.com/questions/79777557/kotlin-exception-in-thread-main-java-lang-noclassdeffounderror-org-lwjgl-gl
kotlin, jvm, lwjgl, glfw
1,759,088,426
se_79777252
stackoverflow
MOBILE_DEVELOPMENT
Could not parse the Android Application Module&#39;s Gradle config after changing compileSdk and buildToolsVersion
Could not parse the Android Application Module&#39;s Gradle config after changing compileSdk and buildToolsVersion I am encountering the following error in Android Studio: Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync. I have tried several things to fix it: D...
https://stackoverflow.com/questions/79777252/could-not-parse-the-android-application-modules-gradle-config-after-changing-co
android, firebase, kotlin, android-studio, gradle
1,759,053,740
se_79672075
stackoverflow
MOBILE_DEVELOPMENT
ViewModel#onCleared not called anymore in Navigation3
ViewModel#onCleared not called anymore in Navigation3 I just updated the dependencies for: androidx-navigation3-runtime = { module = "androidx.navigation3:navigation3-runtime", version.ref = "nav3Core" } androidx-navigation3-ui = { module = "androidx.navigation3:navigation3-ui", version.ref = "nav3Core" } androidx-lif...
https://stackoverflow.com/questions/79672075/viewmodeloncleared-not-called-anymore-in-navigation3
android, kotlin, android-jetpack-compose, android-jetpack-navigation
1,750,337,497
se_69008915
stackoverflow
MOBILE_DEVELOPMENT
How to serialize Kotlin data-class with default values into JSON using kotlinx.serialization?
How to serialize Kotlin data-class with default values into JSON using kotlinx.serialization? There is an example of a class with a default value: @Serializable data class TestClass( val obligatory: String, val optional: Int = 0 ) It can be correctly deserialize from jsons like: { "obligatory":"text", "option...
https://stackoverflow.com/questions/69008915/how-to-serialize-kotlin-data-class-with-default-values-into-json-using-kotlinx-s
json, kotlin, serialization, kotlinx.serialization
1,630,478,577
se_69074529
stackoverflow
MOBILE_DEVELOPMENT
Spring cloud sleuth baggage propagation not working when custom propagation mechanism implemented
Spring cloud sleuth baggage propagation not working when custom propagation mechanism implemented I implemented custom propagation mechanism since i want to use another header names(not x-b3-traceid) for tracing. After that I decided to use baggage to propagate some additional fields. Out of the box, spring use compos...
https://stackoverflow.com/questions/69074529/spring-cloud-sleuth-baggage-propagation-not-working-when-custom-propagation-mech
java, spring, spring-boot, kotlin, spring-cloud-sleuth
1,630,931,190
se_78198494
stackoverflow
MOBILE_DEVELOPMENT
How to enable fullscreen in Jetpack Compose apps
How to enable fullscreen in Jetpack Compose apps I'm learning Jetpack Compose with Kotlin, and trying to make an app with the option to enable fullscreen mode in Android, only showing the status bar after swiping it down. I've searched for examples online, but none of them worked for me yet. Some can hide the status b...
https://stackoverflow.com/questions/78198494/how-to-enable-fullscreen-in-jetpack-compose-apps
android, kotlin, android-jetpack-compose, android-fullscreen, android-immersive
1,711,010,249
se_47754736
stackoverflow
MOBILE_DEVELOPMENT
How to make Activity blurry when it goes background?
How to make Activity blurry when it goes background? I couldn't find anything about this kind of feature online. So basically what I'm trying to achieve is when the user clicks Home button (in other words onPause() method called) I want to make the activity invisible or blurry on back stack for maximum security. I ...
https://stackoverflow.com/questions/47754736/how-to-make-activity-blurry-when-it-goes-background
android, android-activity, kotlin, android-lifecycle
1,513,001,346
se_66634247
stackoverflow
MOBILE_DEVELOPMENT
My Notification Channel is not being created
My Notification Channel is not being created Whenever I send a notification through fcm. It says it will use the default from manifest or the android app, I also have mentioned my channel in manifest as default. It just says that the channel is not created by the app. Log says W/FirebaseMessaging: Notification Channel...
https://stackoverflow.com/questions/66634247/my-notification-channel-is-not-being-created
java, android, firebase, kotlin, firebase-cloud-messaging
1,615,795,202
se_75568707
stackoverflow
MOBILE_DEVELOPMENT
DropDown Menu reopens when its already open
DropDown Menu reopens when its already open this is my code @Composable fun MyComponent() { val items = listOf("Option 1", "Option 2", "Option 3") var selectedIndex by remember { mutableStateOf(0) } var expanded by remember { mutableStateOf(false) } Column { IconButton(onClick = { expanded = !...
https://stackoverflow.com/questions/75568707/dropdown-menu-reopens-when-its-already-open
android, kotlin, drop-down-menu, android-jetpack-compose
1,677,362,170
se_48663785
stackoverflow
MOBILE_DEVELOPMENT
For Loop in kotlin
For Loop in kotlin I am new to kotlin and am having a difficult time doing a simple for loop. Please help me in achieving this. How would you translate this from java to kotlin? How do you specify a variable i and it should start at a given number and until arriving to a specified number? int number[] = {5,4,1,3,15}...
https://stackoverflow.com/questions/48663785/for-loop-in-kotlin
android, for-loop, kotlin
1,518,006,380
se_79772930
stackoverflow
MOBILE_DEVELOPMENT
Kotlin compiler error in Android Studio after using &quot;Replace with new library catalog declaration&quot; quickfix
Kotlin compiler error in Android Studio after using &quot;Replace with new library catalog declaration&quot; quickfix NOTE: Scroll to the bottom for the exact reproduction steps. When I add the dependency com.squareup.okhttp3:okhttp:5.1.0 to build.gradle.kts (app module), apply the "Replace with new library catalog d...
https://stackoverflow.com/questions/79772930/kotlin-compiler-error-in-android-studio-after-using-replace-with-new-library-ca
android, kotlin, android-studio, gradle, compiler-errors
1,758,650,110
se_79731846
stackoverflow
MOBILE_DEVELOPMENT
using Flutter I get the error Daemon compilation failed: null
using Flutter I get the error Daemon compilation failed: null I am a beginner with flutter on visual Studio code. I am trying to convert a titanium app to flutter. During this I got to the point I needed to add 2 packages, namely shared_preferences and device_info_plus. After adding these I get compiler errors in rega...
https://stackoverflow.com/questions/79731846/using-flutter-i-get-the-error-daemon-compilation-failed-null
android, flutter, kotlin, visual-studio-code, build-cache
1,754,902,145
se_79629239
stackoverflow
MOBILE_DEVELOPMENT
Android TV App: Search Overlay Not Disappearing Properly
Android TV App: Search Overlay Not Disappearing Properly Android TV App: Search Overlay Not Disappearing Properly I'm developing an Android TV app and having issues with the search overlay not disappearing properly. The overlay remains visible even after attempting to close it. reference image Layout Structure Here's ...
https://stackoverflow.com/questions/79629239/android-tv-app-search-overlay-not-disappearing-properly
android, kotlin, layout, television, iptv
1,747,676,618
se_79775663
stackoverflow
MOBILE_DEVELOPMENT
Multi thread concept in Android and programming in general
Multi thread concept in Android and programming in general I have few doubts regarding multi threading concepts. If I am setting a value to a variable, why should I assume other threads may read/write it? Why should I make it thread safe? Why does other threads need my variable? How do the threads know that such a va...
https://stackoverflow.com/questions/79775663/multi-thread-concept-in-android-and-programming-in-general
android, multithreading, kotlin
1,758,876,654
se_79774994
stackoverflow
MOBILE_DEVELOPMENT
Combining Arrays in Kotlin functionally
Combining Arrays in Kotlin functionally I haven't really used Kotlin's functional features that much. Let's say I have a two dimensional Array like so: val tiles = Array(h) { Array(w) { Tile(this) } } What might be the simplest way to combine these Arrays functionally and return a single Array<Tile>? val allTiles: Ar...
https://stackoverflow.com/questions/79774994/combining-arrays-in-kotlin-functionally
kotlin
1,758,811,786
se_79774358
stackoverflow
MOBILE_DEVELOPMENT
After switching from Kotlin to Flutter, sometimes I encounter issues where the UI rendering seems incomplete
After switching from Kotlin to Flutter, sometimes I encounter issues where the UI rendering seems incomplete I need advice regarding Flutter Module (App to App) with Kotlin. I’ve noticed that when navigating from Kotlin to Flutter, sometimes the UI rendering seems incomplete, such as the back button in the top navigat...
https://stackoverflow.com/questions/79774358/after-switching-from-kotlin-to-flutter-sometimes-i-encounter-issues-where-the-u
android, flutter, kotlin
1,758,773,871
se_76647514
stackoverflow
MOBILE_DEVELOPMENT
Inject ViewModel into compose code by Koin in Compose Multiplatform
Inject ViewModel into compose code by Koin in Compose Multiplatform Is there any way to inject the ViewModel into composable function of Compose Multiplatform? I have tried with Koin dependency injection but it seems not yet ready to inject ViewModel in common module yet. Is there any alternative way or library that c...
https://stackoverflow.com/questions/76647514/inject-viewmodel-into-compose-code-by-koin-in-compose-multiplatform
kotlin, kotlin-multiplatform, koin, compose-multiplatform
1,688,906,213
se_68275999
stackoverflow
MOBILE_DEVELOPMENT
Why Android Datastore always returns same value with runblocking
Why Android Datastore always returns same value with runblocking I've been using Datastore for a long time. Today i had to read the values in the main thread. After reviewing the documentation, I decided to use runblocking. I created a long value which name is lastInsertedId. I reading lastInsertedId in Fragment A the...
https://stackoverflow.com/questions/68275999/why-android-datastore-always-returns-same-value-with-runblocking
android, kotlin, kotlin-coroutines, android-jetpack-datastore
1,625,597,425
se_77164812
stackoverflow
MOBILE_DEVELOPMENT
Ktor fails to parse json for api response because of &quot;text/html&quot; content-type at response header
Ktor fails to parse json for api response because of &quot;text/html&quot; content-type at response header I use Ktor (2.3.4) to send an api request to a server that returns json data. Unfortunately, the server put content-type "text/html" instead of "application/json" at headers which causes ktor to fail returned con...
https://stackoverflow.com/questions/77164812/ktor-fails-to-parse-json-for-api-response-because-of-text-html-content-type-at
kotlin, ktor, ktor-client
1,695,501,320
se_67592222
stackoverflow
MOBILE_DEVELOPMENT
How to wait for a Kotlin coroutine to finish
How to wait for a Kotlin coroutine to finish I've read dozens of posts, but somehow none of the answers seems to work in my case. What I want to achieve is is to wait in Fragment for ViewModel to perform operations using Room. Dao: @Query("SELECT * FROM my_table WHERE id = :id") suspend fun getMyData(id: Long): List<I...
https://stackoverflow.com/questions/67592222/how-to-wait-for-a-kotlin-coroutine-to-finish
android, kotlin, android-room, kotlin-coroutines
1,621,363,418
se_64482537
stackoverflow
MOBILE_DEVELOPMENT
How to get ip address from call object
How to get ip address from call object I use Ktor for a backend service and I'd like to log incoming requests. I have the feature installed and everything is great but how I can obtain the remote IP address? call.request.origin.remoteHost I use this line but I get a hostname, not the IP. I use the standard getByName ...
https://stackoverflow.com/questions/64482537/how-to-get-ip-address-from-call-object
kotlin, ktor
1,603,370,731
se_79774069
stackoverflow
MOBILE_DEVELOPMENT
Ultra-wide-angle effect on Android physical device using React Native and QuickPose AI
Ultra-wide-angle effect on Android physical device using React Native and QuickPose AI After unsuccessful attempts to find a solution to this problem, I decided to raise the issue. The problem is that the camera from the QuickPose AI package on an Android device stretches the camera mirror vertically. For reproduce th...
https://stackoverflow.com/questions/79774069/ultra-wide-angle-effect-on-android-physical-device-using-react-native-and-quickp
react-native, kotlin, android-camera, native-module
1,758,739,620
se_79773992
stackoverflow
MOBILE_DEVELOPMENT
Kotlin Multiplatform Plugin not working properly
Kotlin Multiplatform Plugin not working properly Kotlin Multiplatform for IntelliJ Idea (Community) Linux and Windows released. Version: 0.9-252.26199-IJ_CE-176. I have installed the plugin and restart the ide it says Plugins 'Kotlin Multiplatform', 'Android Design Tools', 'Kotlin', 'Kotlin', 'Kotlin Multiplatform',...
https://stackoverflow.com/questions/79773992/kotlin-multiplatform-plugin-not-working-properly
kotlin, intellij-idea, kotlin-multiplatform, intellij-plugin
1,758,733,540
se_78432179
stackoverflow
MOBILE_DEVELOPMENT
Single Jacoco code coverage report for multi-module project
Single Jacoco code coverage report for multi-module project I have multi-module android gradle project. I have implemented Jacoco into my project which will generate code coverage report for each and every module. The problem is all module reports are generated separately inside build directory of each module. I want ...
https://stackoverflow.com/questions/78432179/single-jacoco-code-coverage-report-for-multi-module-project
android, kotlin, gradle, code-coverage, jacoco
1,714,911,885
se_74879277
stackoverflow
MOBILE_DEVELOPMENT
Queue of snackbars jetpack Compose
Queue of snackbars jetpack Compose When i call Snackbar multiple times, they create a queue and occure one by one. I want a new Snachbar to immediately close previous one. Here is my code: Scaffold( snackbarHost = { SnackbarHost(it) { data -> Snackbar( actionColor = color5, ...
https://stackoverflow.com/questions/74879277/queue-of-snackbars-jetpack-compose
kotlin, android-jetpack-compose, android-snackbar
1,671,641,569
se_78975729
stackoverflow
MOBILE_DEVELOPMENT
Issue: java.lang.IllegalStateException: Storage for [...] is already registered When Adding Type Converters with KSP
Issue: java.lang.IllegalStateException: Storage for [...] is already registered When Adding Type Converters with KSP Overview: When working with Room and KSP (Kotlin Symbol Processing) for type converters in an Android project, I encountered a recurring issue after adding a new type converter. The error message was: j...
https://stackoverflow.com/questions/78975729/issue-java-lang-illegalstateexception-storage-for-is-already-registered
android, kotlin, type-conversion, android-room, kotlin-symbol-processing
1,726,089,360
se_79769898
stackoverflow
MOBILE_DEVELOPMENT
How to generate openapi docs offline with spring and kotlin
How to generate openapi docs offline with spring and kotlin I'm trying to generate apidocs docs in a github pipeline, for a kotlin + spring + springdoc-openapi-starter-webmvc-ui, but I dont want to start the application and serve a localhost uri for openapi generate the docs because it's need connect to database and d...
https://stackoverflow.com/questions/79769898/how-to-generate-openapi-docs-offline-with-spring-and-kotlin
spring, kotlin, gradle, api-doc
1,758,310,799
se_65792764
stackoverflow
MOBILE_DEVELOPMENT
SMS verification code request failed when authenticating using Firebase Auth
SMS verification code request failed when authenticating using Firebase Auth When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually, but when I use SmsRetriever, the app crashes and then the bottom sheet dialog show...
https://stackoverflow.com/questions/65792764/sms-verification-code-request-failed-when-authenticating-using-firebase-auth
android, firebase, kotlin, firebase-authentication, sms-retriever-api
1,611,064,001