Category "kotlin"

Problem after adding external dependencies in IntelliJ

I'm starting a project using the KorGE library, and I would like to use Retrofit as XML parser. So I try to follow this guide, which seems fine, but I just poor

Documentation for the XML format for files referenced from the kotlinc -Xbuild-file argument

Where is the documentation for the XML format for the contents of files referenced from the kotlinc -Xbuild-file argument? The XML looks something like: <mod

Trying to use NavHostFragment and im getting an error: Error inflating class androidx.fragment.app.FragmentContainerView

here is the caused by: " Caused by: android.view.InflateException: Binary XML file line #21 in com.example.dnaire:layout/main: Binary XML file line #21 in com.e

Unable to bring window to foreground with compose desktop

With the following code the application window can be hidden using the button and restored using a global shortcut ALT+S. Now I would like to also use the short

Why can't I display my data from firebase?

I have a problem because I can’t display my data from firestore. I want to take my id from the xml. I’ve written this with help from a video and whe

What is the difference between limitedParallelism vs a fixed thread pool dispatcher?

I am trying to use Kotlin coroutines to perform multiple HTTP calls concurrently, rather than one at a time, but I would like to avoid making all of the calls c

The 'kotlin-android-extensions' Gradle plugin is deprecated

with the Gradle version 6.2 and Android studio version 4.0.1, I have the deprecation message for the Kotlin-android-extention. any body has any idea how to fix

InfluxDBIOException: java.net.SocketTimeoutException: timeout

I'm using Influx Db java wrapper and adding data in influx db for every 5 seconds with a retention policy of 30 days. When I'm trying to query the data by send

Resolving Pageable in Webflux

I spent a lot of time to find a solution about Pageable in Webflux, unfortunately, at the time of writing this, Webflux does not support Pageable so I came up w

Android app with WebView of AR ( Augmented Reality ) Website Android Studio + kotlin

I have android application which contains a webview of one website with AR facility. But I am facing an issue that normal webview of android doesn't allow to op

How to find a view for Snackbar in fragment's onCreateView method if I use view binding and navigation component?

I'm trying to show a snack bar in fragment's onCreateView method but I don't know what view to passing inside the snack bar. I'm very confused because I first t

How can I create single-thread coroutine context under Common pool in Kotlin?

Short requirement: have ability to create corotine context, which will executed in the single thread only (e.g. without parallelism). Additional requirement: i

Grid layout manager with dynamic item

I use grid layout manager but not working good for dynamic item What I want: or just like And What it shows:

Unresolved reference: title & Unresolved reference: overview

I've got error of Unresolved reference: overview & Unresolved reference: title after I added List<Result>, as for separating code inside folder after

How to solver error for kotlin coroutines flow?

I tried to use NetworkBoundResource for my MVVM Model and after i follow some tutorial, i'm having an error look this 10-21 14:15:04.073 31376-31376/com.example

Spock and internal kotlin function

I am having trouble with using internal kotlin functions in my Spock tests. Here's short snippet of my spock test: private def preconditions = new MonetaryPrec

How to set visibility in Kotlin?

I am new in Kotlin. I have a view that I need to show or hide in conditional ways. How can I do this in Kotlin? In Java: public void showHide(View view){

is it possible to convert aar file to android studio project?

Currently I have an aar file and need to edit the structure and functions in it. I need to convert it to a project in order for you to edit it. Is there any way

Beginning Android programming - Build your first app

After just installing the latest Android Studio (3.0.1) I started with the Build Your First App guide. I'm using Kotlin as it seems to be the suggested way to g

Get dual sim phone call logs (Call Log Is from what Sim Card)

We're creating a call log application and in a call log I want to show the user that the call log is from sim 1 or sim 2. I found this but when I try to get it,