Category "android"

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

Get lat/lon from google maps url ftid (hex)

When using android google maps app share button for a location, it just return a url as intent to other applications like this one: https: // goo. gl / maps/tk

Glympse notification "Smart Device Link" on Android 10

since quite a while I get an annoying notification from Glympse about "Smart Device Link". As I am not aware of using that feature, I would like to get rid of t

Working with .sql file in android?

I am working on android project. In my project I have a 'DatabaseFood .sql 'file(initially it was a .csv file), it looks like this BEGIN TRANSACTION; CREATE TA

I have problem with gradle in flutter. Could not open settings generic class cache for settings file

Here is the error: FAILURE: Build failed with an exception. What went wrong: Could not open settings generic class cache for settings file 'E:\proj\android\sett

Which Java version is the fastest on and is supported by Android?

I heard that Java is becoming faster on newer versions of Android that it's almost as fast as C++, and the performance depends on the type of code/operations. I

Copy Data from CSV file to Sqlite file in Android

I want to copy the data from CSV file to SQLite file for my android application.SQLite table structure i.e. the columns are different than the CSV file columns.

Cause: androidx.navigation.safeargs can only be used with an androidx project

I am facing issue with navigation component called safeargs. I have used classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.0.0' in build grad