Category "android"

Change color of Floating Action Button from Appcompat 22.2.0 programmatically

I would like to know how to change the Floating Action Button color from the Support library 22.2.0 ? I've tried button.setBackgroundColor(color); but clear

Not all apps are in the notification number badge list

Hi there Android / HUAWEI friends! I am designing an App for Android. I have utilized Firebase to send push notifications to the device where the app is install

Android/XML: RelativeLayout design

basically, I don't understand how to use RelativeLayout. I don't know how to design it. I always use LinearLayout with Table inside of it. Now I use RelativeLay

Room database onConflict = OnConflictStrategy.REPLACE not working

I am working on Room database and trying to insert list of items(eg. list of Quotes which contains author name and a quote in my case). Following is the code I

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