Category "android"

How to send message from "Activity" class to a customize layout

I am trying to develop a bluetooth app. I have a class called "ConnectionManagement" which implement the "connect/accept" and "read/write". The information i ge

Is there a way to set auto refresh the jetpack compose preview?

I just started to use the Jetpack compose toolkit. I added the @Preview and a set showBackground = true, showSystemUi = true as parameters and it works really g

Android talkback reads background text behind the bottomsheet

When bottom sheet is shown in my app want to stop talkback reading background text. The behaviour works fine in Google News app. Issue: Talkback setting is ON.

Android studio emulator Stops

I am asking for your kind support. I have problem with Android studio emulator. The emulator always stops. It is quite annoying as I want to test the applicatio

How to return ArrayList from intent

I have a code that pass an arraylist to another intent, how can i return the value of updated arraylist back to the main intent ? Array list in main intent code

Koin 3.2/Compose - injecting an activity-scoped viewmodel from a composable

I have scoped a viewmodel to an activity like this: scope<MyActivity> { scoped<UseCase1> { UseCase1Impl(get()) } scoped<UseCase2&

Return the result from a RecyclerView adaptor back to the MainActvity.kt?

I am trying do I return the result of the position from my Recyclerview Adapter, but I can't call the " adapter.setOnItemClickListener(this)" from MainAc

Jetpack compose: How to detect what is causing a Composable to recompose

I'm starting to notice some jank in my app and I believe the cause is composables being re-composed when they should not. I've detected a few user interactions

Why are images distorted after compressing image streams in PDF manually?

I am creating an application which converts Images to PDFs. It also has a feature which compresses the already created PDFs. Both features are working. But the

React Native Images On Android Never Reload When Uri Doesn't Change

Despite uploading a new image to an s3 hosted url, the <Image> component will not update the image if the uri does not change. This is a problem for Andro

Android Gradle Plugin 4.2.x changed behavior for assumenosideeffects

I noticed a behaviour change using the Android Gradle Plugin 4.2.x regarding the ProGuard assumenosideeffects rule. I use this rule in my Android library projec

How to communicate betweeen viewmodels in jetpack compose

I have a home screen in my application that is basically content with a navigation bar Each of the three selections of the navigation bar lead to a different sc

HTTP server in Android emulator not accessible from host

On my Android emulator device I have deployed HTTP server on port 8080 > adb -s 127.0.0.1 shell generic_x86:/ $ netstat -atn Active Internet connections (est

I would like to setup ble device simulator

As part of my work, i would like to have multiple (100+) BLE devices to test my application. At this moment I don't have that many devices. So, I wanted to simu

TopAppBar flashing when navigating with Compose Navigation

I have 2 screens which both have their own Scaffold and TopAppBar. When I navigate between them using the Jetpack Navigation Compose library, the app bar flashe

Scroll to top when adding new items

I have a usecase where I would like a LazyColumn to scroll to the top if a new item is added to the start of the list - but only if the list was scrolled to top

Unable to add view to a window with TYPE_PHONE params android

I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view I tried to use WindowManager

Android 11 Download File to Download Folder doesn't work

currently I'm trying to download a File with the DownloadManager but that doesn't work, the download starts but there is no File inside the Download Folder afte

Unable to add view to a window with TYPE_PHONE params android

I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view I tried to use WindowManager

KMM IncorrectDereferenceException in Thread

I have been trying to upload an image to aws s3 server using shared module KMM. It works very well in Android but in iOS I have been getting this issue :- Uncau