Category "android"

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

How to identify multiple instances of Glance App Widget

I am trying to create a widget which shows information about a hardware device. There can be multiple of these devices and user will be able to add same widget

how to check if a phone number is valid whatsapp number in Android?

so I have an edit text that will be used as a view to get phone number from user, say if the phone number is +6123456789 , I want to check if this number has wh

No tests found for given includes Error, when running Parameterized Unit test in Android Studio

I have tried to run Parameterized Unit Tests in Android Studio, as shown below: import android.test.suitebuilder.annotation.SmallTest; import junit.framework

How to prevent touches prematurely stopping smoothScroll in RecyclerView?

I am using an Adapter to fill a RecyclerView with numerous CardView layouts (horizontally). Each CardView has a Button at the bottom of the layout, which when p

Left and top padding for CheckBox doesn't work

I want to create layout for Custom Adapter. It should be line with checkbox, icon and textView. I use next layout xml configuration for row: <LinearLayout

Dynamic link seems to not survive to the installation process

My MainActivity manages the deep link this way override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ... intent?.l

Changing an ImageView to black and white

I would like to change an ImageView's image to black and white. The only thing is my code allows the user to take a photo, that photo is placed in the imageview

Mapbox: How to correct Line overlapping over a Symbol

I'm using the SymbolManager to display two symbols on the map. Here is an example: The dark symbol is because of the fact that I'm testing the project on the

Android SearchView.OnQueryTextListener OnQueryTextSubmit not fired on empty query string

I am using Android 4.1.2. I have a SearchView widget on an ActionBar. Documentation on SearchView.OnQueryTextListener from the android developer site states tha

how to play audio file in android from internal memory of phone

I want to make sample to play an audio file in android ,i want to play music from internal memory of phone .how to give path please suggest. I am writing this,