Category "android"

Crash in AutofillManager NPE: trying to invoke virtual method containsKey(java.lang.String)' on a null object reference

I have no direct traces of using AutofillManager in my project but still getting this crash in crash analytics. How we can handle this? Crash Logs- java.lang.Nu

Gradle can not find firebase auth ktx library in android

As you can see below, I have encounter this error when I try to download missing files inside firebase auth.ktx library otherwise I can not reach any document

What is the easiest way to use SVG images in Android?

I have found a myriad of libraries in order to use SVG images in Android and avoid the frustrating creation of different resolutions and dropping files for each

How to filter a nested relation in Room?

Let's take this example: I have a form, which has several sections, each having questions. Sideways, I have answers that are mapped to questions and they have a

Firebase recyclerview always refreshes and losses its scroll position when starting new activity and returning

My Firebase recycler view always refreshes and loses its scroll position when opening new activity and coming back. Tried multiple solution in Stack Overflow bu

Adb reverse tcp not working on android connected remotely

I am trying to execute reverse tcp command on a android device connected remotely(using adb connect <ip-address>). But I am getting following error while

PDF load error in com.github.barteksc.pdfviewer

I'm using com.github.barteksc.pdfviewer library to view pdf files. I don't know what happened it stopped working from past 2 weeks, Im getting PDF load error. T

error: unable to read askpass response from '/home/.cache/Google/AndroidStudio2021.1/tmp/intellij-git-askpass-local.sh' in ubuntu android studiio

I am trying to push my code to my bit bucket repository but from last few days after update from bit bucket, I have to use token to push code. But I don't know

Android Toolbar Popup menu not showing icons

I am trying to show a drop down menu for my toolbar which includes BOTH text and icons: <menu xmlns:android="http://schemas.android.com/apk/res/android"

Compare two sound in Android

Is possible to compare a voice with already recorded voice in the phone.Based on the comparison we can rate like Good, Very Good , Excellent etc. Most closed s

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8, but i'm using java 11

I imported a Flutter project, and when I tried to run it, I got this message error: FAILURE: Build failed with an exception. * Where: Build file '/home/omer35

My observer is always firing when I come back from one fragment to another

I'm using Navigation Components, I have Fragment A and Fragment B, from Fragment A I send an object to Fragment B with safe args and navigate to it. override f

Android Bluetooth Printing

I am writing an application which sends data to bluetooth printer. Can anyone help me ? how can I use android Bluetooth Stack for printing? or is there any exte

java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext Android

I've been getting an error like this for days, but I couldn't find a solution. Can you please help me? What could the problem be caused by? Error : java.lang.Il

What is the difference between colorPrimary and colorPrimaryDark in themes

I'm trying to understand how the theme works in android. I don't know why colorPrimaryDark won't work with me or maybe i'm doing it wrong. I tried this set and

How to run .swf Files on Android Device

I am new to android and just started working on flash objects, by which i mean .swf files. I have read a lot about using a web view to load the swf file stored

Error:Unknown host 'maven.fabric.io'. You may need to adjust the proxy settings in Gradle

I am trying to use the fabric io plugin and have to use the below maven repo : maven { url 'https://maven.fabric.io/public' } but it gives me error while syn

In which situation val/var is necessary in Kotlin constructor parameter?

Right code: class MainActHandler(val weakActivity: WeakReference<Activity>): Handler() { override fun handleMessage(msg: Message?) { val true

Android studio code coverage not showing any Kotlin classes

I have 2 Kotlin based AS projects. One works fine, the other doesn't. Both have an identical structure and gradle config. I'm using Kotlin 1.1.4-2 with AS 3.0b2

Run Android instrumented tests fail

I tried to implement some unit and instrumented tests for my Android application (Java), my unit tests is working fine but instrumented tests are failing: @Run