Category "kotlin"

4003: Data item to large sending data from wear os to app

I'm developing a wear os app that needs to send a list of "MyObject" to mobile, data class MyObject( val id: String, val name: String, val locations

How can I zoom in of an image without enlargining it?

I've been looking at a few methods of zooming in on images and I've found some similiar versions of this Zoom in GeeksForGeeks. Now my question is whether the z

Filter in calendarView

How can I filter the list to the selected date of the calendarView My error in in line *emit(it) private fun getFilmsDbFlow(resultDb: ResultDb): Flow<Results

Switch between activities but global function

I want to create a global function and I want to switch between activities with this function. Extensions.kt fun goActivity(context: Context, goClass: Class

Spring's @DateTimeFormat ignores wanted date format pattern

Can't get my head on how date formatting using @DateTimeFormat works. I send query with date params being: dateCreateFrom - 01.04.2022T00%3A00%3A00 dateCreateTo

kotlin quiz i can't color answer because don't run ContextCompat

Could you help me with the following code, I can't get it to paint the correct option green, or show the animation, of the CorrectResponse function. If I delete

Uneable to find TransformToGrayscaleOp class in android for transform to greyscale in android

I want to transform my image to grayscale but when i traid to use TransformToGrayscaleOp class i got this error in the ide: Unresolved reference: TransformToGra

Notifications are not shown when the app is closed, how can I fix it?

It successfully shows notifications when the app is open. It shows even when the app is in the background. When I close the app it doesn't show up anymore. I do

FFMpeg Add multiple Gifs/Watermarks to a video

I'm trying to add various Gifs/Watermarks to a video, but I'm having a problem getting it to work properly. We're assuming the video is 60 seconds long and I'm

How to detect state of ModalBottomSheetState while swiping bottom sheet in compose

simple question, How to detect state of ModalBottomSheetState while swiping bottom sheet in compose? I mean, I want to know how can I find out where state of M

holder.itemView.rowLayout.setOnClickListener

I have created the following adapter class for recyclerview but there is a compilation error while building in layout section "holder.itemView.rowLayout.setOnCl

How to update multiple types appwidgets from the fragment of ConfigActivity by pressing one button?

I've made 2 different types of appwidgets showing some calendar data. Each type has it's own layout, AppWidgetProvider class, AppWidgetProviderInfo object, but

Unable to Transfer spring-boot-starter-parent from maven repository

Below is my pom.xml. I am getting exceptions while fetching the spring-starter-parent from maven repo. what is it that I should specify in my relative path : Wh

Flipper doesn't show my network plugin and shows connection problem

My colleague did the same and his flipper works fine, but my flipper doesnt show network plugin and requests. Even if start other apps in same device it works g

How to map PagingSource to another object

I implement paging 3 follow this codelab. codelab But when i create UserPagingRepository, i have problem that data class is not map. In Room DataBase, i use Use

add collection to firestore with kotlin problems

I am trying to understand and use firebasefirestore from android studio with kotlin. I have been following tutorials from the official docs, and from udemy and

How to programatically determine Android device setup timestamp

I am trying to figure out if there is a way to programmatically determine the timestamp of when an Android device was setup, just like how it can be found in Fi

Unable to invoke no-args constructor for class ConversionRates

I have a Currency Converter Android app. I 'm using retrofit for getting rates from API but as far as I'm concerned my app can't get data from api and it return

How to call a function on a RecyclerView Item click [android]

I did an OnClickListenner on RecyclerView Item in the ViewHolder class Item = small card + big card like that init { itemView.setOnClickListener {

Correct understanding of T.() lambda

I'm having trouble understanding lambda. In particular, things like T.() -> R in the run() is more confusing. public inline fun <T, R> T.run(block: T.(