Category "android"

Can´t put the background in white on jetpack compose

I'm making a Login page on Jetpack compose. I'm using themes with MaterialTheme. When I choose the background colour as white, it shows me a dark grey colour. I

Pictures with Camera2 API are really dark

I'm working on Android and I'm trying to capture a picture without displaying any preview. I tried to simplify the process by making a class. It's working but a

How to clear textfield value in Jetpack Compose?

I've developed a textInput composable with a trailing icon, and I'd like to clear the textInput when the icon is clicked. How can I access the textInput value,

MediaSessionCompat:Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

I'm trying to update my application to Android SDK 31 but I'm having an issue with MediaSessionCompat. I have a MediaService that extends the MediaBrowserServic

onmouseover="this.click()" for Android

I am using this code: <a href="http://www...." onmouseover="this.click()">Link</a> I know that's not working with Android Browser. Which (javas

How can i get my buttons working for Android Studio?

I have an Activity which has two buttons on it. The first button adds the user data to a database and the second takes us to a different activity. The buttons i

Firestore Delete elements from a nested map kotlin

I have a collection, I want to delete 2 documents from this collection Paradas collection and delete it from the nested map too Nested map like in SQL, when yo

How to add Toolbar on Translucent imageview

I need to know, How we can create an toolbar on this imageview just with back button(getSupportActionBar().setDisplayHomeAsUpEnabled(true);). Here is the exampl

Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints: Error when run androidTests

I have migrated to androidX recently and updated my targetSdkVersion to 29. After that I received the error when try to run androidTests: Cannot find a version

How to get location updates using FusedLocationProviderClient?

I'm an Android noob and also this is my first post on stackoverflow. I've been trying for some time to find a solution to my problem but couldn't find anything

Android : Failed writing handshake bytes (-1 of 14): Broken pipe

Bascially i'm trying to add the back functionality using (MinSDK is set to 11) getActionBar().setDisplayHomeAsUpEnabled(true); Here are is my function: pub

Is it enough to wrap exported functions of a C library using JNI for it to work using JNI?

I am trying to wrap a C library using JNI. I am interested about the prospects of using any C library using JNI (particularly with Android, but I assumed this c

How to Change App title to Logo in Android Studio

How to change the App Title to a Logo? seems this code is not working to Remove the App Title still in there when i build the app. <style name="AppTheme" pa

How to add non-English words as text part to multi-part request in volley lib?

I have a custom json request class to upload multi-part files to server this class in an Android application , it works fine when I add English words as keys an

React Native IllegalViewOperationException: StackOverflowException Android

CONFIGURATION I have this setup: RootNavigation import React from "react"; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import

Android button position fixed to bottom until scroll to its parent layout position

I want to add a button to my layout which is fixed to bottom in the screen until user scroll and come to its proper location in the parent layout. Here the butt

Check if Android app is running on a Google test device?

I recently uploaded an app bundle to Internal App Sharing, and was surprised to see that on my backend, there were 7 new users of this new app version just a fe

Android Studio cannot resolve org.junit

I am using JUnit tests in Android Studio 1.2.2. The tests run without a problem. The only thing that puzzles me is that Android Studio cannot resolve the actual

kotlin kapt3 KaptBaseError: Error while annotation processing ::For Room Database

I am running into this strange issue in the Room database operation classes. There are lot of Annotations are used, starting from Database then Entity, DAO... N

Strange value comparison issue in Kotlin, "===" returns true but "==" returns false

I have encountered a very strange value comparison issue in Kotlin that I cannot explain, the following code prints false data class Foo ( val a: Byte ) fun