Category "android"

on back press splash screen showing instead of last opened screen

I am making one android application. When i open the app splash screen showing and then it goes to mainactivity. now if user will press the back button and open

Why does phone state listener get fired multiple times for same state for one call?

I am working on fetching recent call log as call get disconnected(outgoing , incoming) either answered or unanswered. I am using Phone state listener to fire

Android Studio Error when Creating a Project with a Google Maps Activity

When I create a new project in Android Studio with a Google Maps Activity I get the following error when I do the initial build of the project: Manifest mer

Allow insecure protocols, android gradle

I recently updated my android studio to Arctic Fox and got an error in my project A problem occurred configuring root project 'so10'. > Could not resolve all

How to show error message in OutlinedTextField in Jetpack Compose

I need to show error message in OutlinedTextField and I don't find any documentation about how to do it. I found several ways in tutorials, for example to creat

App not retrieving images from firebase realtime database in android studio with Java

Please I want to retrieve images with text from Firebase Realtime Database to a RecyclerView using a CardView which contains ImageView for the image and two Tex

GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is not complete or incompatible with command

i have made a 360 image viewer on unity and i am changing image texture dynamically using c# script , so its work fine on PC unity but when i run it on android

Failure [INSTALL_CANCELED_BY_USER] on Xiaomi device

I bought a Xiaomi Redmi 4x yesterday and I can't debug my apps in this device. I already enabled the Developer Options in the device, switch on to USB Debuggin

flexiprovider conflicts with bouncycastle when retrieving keys from string

I have been using a solution, provided in bellow, to encrypt/decrypt using Flexiprovider for a while. The solution works on galaxy s5 and s6. However, in s9 it

Updated to Android Studio Arctic Fox and now I am stuck with "Execution failed for task ':app:kaptDebugKotlin'"

Just updated to Android Studio Arctic Fox on Mac, and after fixing and updating all Gradle settings to make it compatible with Gradle 7.0 and anything this new

How to show error message in OutlinedTextField in Jetpack Compose

I need to show error message in OutlinedTextField and I don't find any documentation about how to do it. I found several ways in tutorials, for example to creat

Is it possible in one Java file to mix Java code and Kotlin code

Android Studio 3.4.2 in build.gradle: buildscript { ext.kotlin_version = '1.3.41' repositories { google() jcenter() } d

Cause: error=86, Bad CPU type in executable M1 Macbook (Android studio)

When attempting to run the emulator on android studio I receive the Cause: error=86, Bad CPU type in executable error message. I'm using the most up to date and

Recyclerview not displaying items

Before setting the dataset to the adapter, I am getting the dataset from the Room database, and then I set the data to the adapter and set the adapter to the re

How to import org.apache.httpcomponents using Gradle

Just trying to make some POST requests in an Android app. I was testing with HttpClient 4.5.3 (https://hc.apache.org/downloads.cgi) in a standalone script. Ever

How to close a webview app if no activity within 5 minutes?

I am asking this after long searches without help. I created a simple webview app with eclipse. (Sometimes – app opens a web browser depending on the ur

How to make some part of text clickable and some part having different text color in react-native

I am trying to make some portion of text of different color and clickable Here is my code: <Text style = {styles.term_service}>By signing up, you agree

How to use wrap_content with a maximum width?

I am trying to layout a view that should wrap its content, but it shouldn't be more than ~100dp less than its parent width. How can I do that using a RelativeLa

Disable Firebase initialization when running instrumentation tests for modules

I have a multi module project. I want to be able to run the instrumentation tests i'm writing for these modules separately. I am continually running into the

Is it safe to turn on the Developer options in my Android smartphone?

I want to use smartphone instead of Genymotion emulator for debugging the apps that I develop. But I am not sure how safe it is to turn on Developer options. I