EN VI
Posts (0)

No data results!

Please check back again in feature!

Questions (15)
2024-03-10 02:00:09
The problem does not come from the mutex, but from the fact that you call remove in a for each loop. The list is modified while being browsed, which it does not support. To make your remove function w...
Tags: android kotlin mutex
2024-03-10 23:30:06
You will also have to mark analyze() as suspend method. A normal call to fireAndForgetMethod() will then wait until the method is finished, before continuing. Ideally, you should use coroutineScope(D...
Tags: kotlin asynchronous scope
2024-03-11 20:00:12
For the most part, the Java Memory Model should apply here. First of all, I am assuming that your singleton is created in a thread-safe way (e.g. it's a val or something from a framework designed with...
Tags: java multithreading kotlin
2024-03-11 20:30:05
You could perform the filtering inside the combine's transform which will be called on updates to the local data source. val uiState = combine( remoteFlow, localFlow, ) { remote, local ->...
2024-03-12 15:30:07
To modify spacing for the whole column use Arrangement.spacedBy: Column( verticalArrangement = Arrangement.spacedBy((-8).dp),
Tags: kotlin button alignment
2024-03-13 20:30:07
According guide section Add classpath buildscript { repositories { mavenCentral() } dependencies { classpath(libs.androidx.navigation.safe.args.gradle.plugin) } }...
2024-03-13 20:30:08
In Jetpack Compose, you should not store any state outside of Composables or ViewModels. So the way you defined your object DataSource is not a good practice. You should instead store your list in a C...
Tags: android list kotlin
2024-03-14 03:30:06
There seem top be multiple issues , I seperated your code into parts SPINNER package com.example.spinner import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.V...
2024-03-14 14:00:04
Just use is to check the type when(result) { is Approved -> //code is NotApproved ->//code }
Tags: android kotlin
2024-03-15 15:00:11
first of all the link of picture you put in doesn't show any thing and then the UI doesn't seem to reflect the updated heart rate value. you need to observe changes in the mutableHeartRate variable an...

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login