Category "android"

Android 12: Detect if user disables/enables camera and microphone

With the new Android 12 operating system, the user now has the ability to completely disable microphone and camera usage from ALL apps. This is actually a good

Do I have to use Bundle for data exchange between activity and fragment?

Multiple Fragments are created in one Activity to switch pages to Fragment binding. At this point, the data in Main Activity must be used by all fragments. So I

Android Studio app crash when paho mqtt eclipse client connect [duplicate]

My Android app keeps crashing only in Android 12 when i want to connect to the mqtt server. What can i do. I tried this solution:Targeting S+

Nativescript Core > TabStripItem auto-formatting text (Android)

Re-posted here from here I'm working with Tabs / TabStrip / TabStripItem and I'm running into a problem (this is only tested on Android). I'm creating a Label u

Android Studio Layout Preview Default Theme

Maybe this is well known option in Android Studio but I couldn't find it and Google has not helped me with this :( Every time I open a layout preview in Android

How to deploy an Android instant app from Azure-DevOps release pipeline

I am trying to deploy an Android Instant App using Azure DevOps release pipelines. Therefore I already have a working release pipeline for my app and can succes

Why i can't install something on termux android?

Its still get error, error and error again, i trying to install it again but still error The error: CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/

Jetpack Compose: Text remains black even when the theme is dark

The text in the app still remains black even if the theme is set to dark and background is dark. Just take a look at the code and screenshots below. Theme.kt (h

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