Category "android"

React Native: On Android, a button covered by position absolute view can still be tapped

Scenario: I have a red, green and blue box, each having a yellow box touchable inside. Red and blue boxers are siblings. Green box is a child of red box and is

How to make live update of glance widget?

Is that possible to make live update the data of Widget using Glance jetpack compose ? Like update data while database is changes . For example while I am using

How to convert date time in hex in android

I need to convert date and time in hex code for writing it on IOT device. Here is my code private String getDateTimeToHexa() { Calendar mCalendar = Calendar

Android PDF not loading in browser and WebView

I am trying to load PDF files in Android Webview. when i Googled it. the best answer what i found is to use Google Docs. Now What i did is append the PDF file U

Attempt to invoke virtual method 'boolean abi44_0_0...FabricViewStateManager.hasStateWrapper()' on a null object reference

Attempt to invoke virtual method 'boolean abi44_0_0com.facebook.react.uimanager.FabricViewStateManager.hasStateWrapper()' on a null object reference This was an

How to catch platformException in flutter/dart?

I am getting Exception has occurred. PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null)) w

How to make ListView's scroll slower when using smoothScrollToPosition() function?

Scroll of my ListView is very fast when using smoothScrollToPosition(int position) function. I want to customize this and want to make it slower. I tried set an

How to pause a video in inside the webview in android

I am doing a task where i have to load the url inside the webview so that i can show the video,everything is works fine but the thing is i need to pause the vi

RecyclerView in BottomSheet not working as expected

I have a problem with RecyclerView directly inside of layout with bottomsheetbehaviour. The problem is that when bottom sheet is expanded and content is scrolle

Android: Alternatives to AsyncTask?

for my app I made a framework for all network calls to an external API. I put everything in "Services" like: UserService, MessageService etc. So now when I want

More than one file was found with OS independent path 'lib/x86/libusb.so'

I am using libusb in my android application. When I am trying to build libusb native library then I get below error message, *.so files generated. Error:Exe

Cannot create an instance of class ViewModel

I am trying to write a sample app using Android architecture components and but even after trying for days I could not get it to work. It gives me the above exc

Jetpack compose display html in text

I have a string that contains html, how can I display this in a Jetpack compose Text? In a TextView I would use a Spanned and do something like: TextView.setTex

Change the radius of the border for OutlinedTextField

Is it possible to change the radius of the border of an OutlinedTextField. I want to achieve something like this I can not use Modifier.border because it just

OCR : Replace recognized text with its translation like google translate

I am working on an OCR project. I using Firebase ML Kit for Optical character recognition. I have to replace the text with its translation in different language

How to get the snapshot.error in Flutter 2?

I updated my Flutter app to Flutter 2, and now when I try to get the snapshot.error in my StreamBuider I get this These are validators with Streams. class Logi

react native app crash by adding this line: apply plugin: 'com.google.gms.google-services'

In my react native app i had added firebase , so my root gradle and app gradle is: root build.gradle: buildscript { ext { ... } repositories { google()

The application crashes when the media recorder starts?

I am using the media recorder to record the calls in android. Some times the mediaRecorder is recording audio and some times it doesn't record audio. When we pl

ViewPager2 | View.ClickListener not called

I use new android widget ViewPager2 version 1.0.0-alpha03 and when I set click listener on it method onClick() not called. My Actvity class: class MainActivit

RecyclerView: Inconsistency detected. Invalid item position

Our QA has detected a bug: when rotating the Android device (Droid Turbo), the following RecyclerView-related crash happened: java.lang.IndexOutOfBoundsExce