Category "kotlin"

How do I upload image file to google drive from android

I'm having a issue uploading a file to Google Drive. W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/dev/files/backup/https:/i.pic

Jetpack compose how to blur text area and line it to the bottom of a card

I want to place text at the bottom of a card and blur the text area with a translucent color. This is what I have so far. The design I am trying to achieve is t

How can we fetch the Firebase realtime database to List

Here I am Trying to Display "users" into Recycleview and I need to Get Data Into List databaseReference?.addValueEventListener(object : ValueEventListener {

How can i achieve this viewpager animation using pagetransformer?

PREVIEW i have been trying to create this kind of viewpager animation couldn't grasp how the animation works and always mess up. Would be really helpful if som

Compose: Why does a list initiated with "remember" trigger differently to Snapshot

I've been messing around with Jetpack Compose and currently looking at different ways of creating/managing/updating State. The full code I'm referencing is on m

Android appcompat edittext input automatically changes to selected language text problem

Hi Every One I am facing rare problem in an android app currently I am working on. Whenever my app has changed to different language except from english.EditTex

Jetpack compose scrollable table

I need to have a component that scrolls vertically and horizontally. Here is what I did so far: @Composable fun Screen() { val scope = rememberCoroutineScop

How Kotlin's coroutine is cancelled under the hood?

Suppose we have a CoroutineScope and we launched several coroutines from it via launch. Then we do CoroutineScope.cancel(). And then we need to wait until cance

[Android][MenuItem]How to display title text when long press actionLayout?

I'm using MenuItem in my tool bar and some of the items require custom layouts, so I created actionLayout for them. The UI looks fine, but when I long press the

setOnClickListener is not showing the Toast or doing the Intent

this is in Kotlin, it doesn't seem to work no matter what I try it's just a button with a click listener. Its function is to take me to another activity, I trie

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

Coroutines test with spek

i'm try to write test for my viewModel function with coroutines. When request is success -> the data is sent to LiveData. If the request fails -> it is re

How to solve flutter Execution failed for task ':twitter_login:compileReleaseKotlin' error?

I am trying to build an apk from my flutter application. I am using the algolia native api and modified my FlutterActivity according to this official documentat

Updating a Single Column In Room Database

That's the function I'm using for updat private fun updateSettingsDatabase(settingsDao: SettingsDao) { lifecycleScope.launch { settingsDao.u

org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$

I am getting runtime exception while building the project. I have added Jetpack compose dependencies extra to the build.gradle file. I could see the following e

How to prevent onDismiss Callback to be call, in custom AlertDialog with Jetpack Compose

I was developing an app which I use Jetpack compose to define the UI. I was implementing some localdatabase such as Room, and I try to implement the remove oper

Ktor 2 - How to add thread local data for a request?

Before Ktor 2 it was possible to use withContext(threadLocal.asContextElement(..)) { proceed() } inside an ApplicationFeature to add thread local data to a

Unresolved reference: ExposedDropdownMenuBox in Compose for Desktop

I need to implement a drop down menu for Windows App which is based on Compose for Desktop For that I am trying to use ExposedDropdownMenuBox But I am getting e

Why does a Flow which return records from Room keep to emit data when I add onStart { }? Is it bugs of Room or Compose?

I query records and return them as Flow<List<RecordEntity>> with Room. I run code A, and get result A as I expected. I hope to display a Loading UI

Azure Service Bus Amqp token issue

I'm using Azure Service Bus, and Managed ID to authenticate to it. I'm using Kotlin and Quarkus, in an AKS environment. Now my issue is that when I deploy my co