Category "kotlin"

How to call suspend function from Service Android?

How to provide scope or how to call suspend function from Service Android? Usually, activity or viewmodel provides us the scope, from where we can launch suspen

RealmDB and diacritical letters problem with upper and lower case

I have project where I use RealmDB. When I use search feature with normal string(letters) it work well - upper/lower letters are in mode Case.INSENSITIVE, but i

How to update the recyclerview when opening the app?

I'm looking for a list of movies in an API, the project is in MVVM and the search is being done perfectly. However, when opening the app, the user has to exit a

Kotlin read from room database in fragment

I write an application with room database and I have a problem with reading data and use it in the mine thread. consider tables as those: Table1 | ID | Name |

Kotlin Flows map

I have an issue regarding kotlin flow merging. See below fun. suspend fun method(filter: String): Flow<List<Model>> { // Search. val models: List&l

Android Databinding Cannot find a setter for * that accepts parameter type *

Am trying to declare a variable in databinding layout it's type is array of integer but I getting an error when building the project Cannot find a setter for &

Getter for defaultDisplay: Display!' is deprecated. Deprecated in Java

I need the width of the screen. But recently found Android defaultDisplay deprecacted with message: Getter for defaultDisplay: Display!' is deprecated. Deprecat

Can we integrate POLQA (perceptual objective listening quality assessment), to Check Voice Quality of Call?

I have requirement to Check Voice quality Rate out of 5 , 5 indicate excellent and 1 is bad. i have research POLQA can do it. but can not find any reference for

sentry android install error Failed to resolve: androidx.lifecycle:lifecycle-common-java8:2.4.0

i want to add sentry 5.6.0 to my android project but always give error on gradle build buildscript { repositories { mavenCentral() } } plugins

After fixing "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8" Android studio emulator still doesn't work

I got an error "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8" I change it in IDE settings and JAVA_HOME environment variabl

How to trigger other CardView element in recyclerview than clicked?

I have a method in adapter using recyclerview I basically display some elements of cardViews. How to trigger method on other element where usually I use cardVie

How to implement In app Update for Android production bundle in Play Store

I have implemented In App Update in my app, its working fine in on both apk and bundle in Internal Testing but its not working when I Upload the production bund

Kotlin noArg plugin not recognised by IntelliJ

I am not sure if I've missed a config or stumbled upon a bug. I am using IntelliJ to build a Kotlin Spring Boot application with JPA and would like to use Kotli

Layout inspector not showing composables tree

When I use Layout Inspector in a running compose app on a device, I do not obtain the composables tree but the view system tree. How to see the composables tree

Why Vert.x blocks event loop thread when using Oracle Reactive Client

I try to user Vert.x Reactive Oracle Client version 4.2.6 to avoid blocking threads in event loop. I decided to test a really long query: GlobalScope.launch(ver

Why am I getting a JsonDecodingException exception in kotlinx.serialization?

I'm trying to create a custom deserializer using kotlinx.serialization but when I deerialize a JSON payload with null parameters, an exception kotlinx.serializa

com.android.build.gradle.LibraryExtension_Decorated cannot be cast to (.....).BaseExtension

Objective :
I have developed Test for CodeCoveragePluginForAndroidConnectedTest . Steps to reproduce error : ./gradlew clean build A problem occurred eval

Notify data change on spinner select

I can't seem to get my driver to update through my app. I have tried but with no luck. I have a possible solution but don't know what the adapter is that needs

material-1.5.0-alpha03\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found

<?xml version="1.0" encoding="utf-8"?> <resources> <color name="m3_ref_palette_dynamic_neutral0">@android:color/system_neutral1_1000</c

How to make Dialog re-measure when a child size changes dynamically?

I implemented a simple dialog with Jetpack Compose on Android. I am trying to show a caution message when isRehearsal is true. The variable isRehearsal is toggl