Category "android"

How to get parent id on Android?

I've tried to get parent id of RadioButton (id of RadioGroup) by RadioGroup rg = (RadioGroup) arg0.getParent(); but it failed. Following construction RadioG

set the canvas size - Android

I want to keep the same size of the bitmap for the canvas, because when I add the custom view to the LinearLayout shows the canvas with different size and I wan

Use Jetpack Compose vertically scrollable component in ConstraintLayout

I have a player layer with subtitle layer like this: Parent of player layer is and XML ConstraintLayout that have a ComposeView child. This ComposeView is my s

Unity car steering

I am using Unity Car Pro for car physics. I want the car to slip during the steering. This script is working perfect but it is so real. Here are some images t

getCipherSuite() returns SSL_NULL_WITH_NULL_NULL

I'm trying to make an https server on Android with a programmatically generated self signed certificate. I feel like I'm pretty close but I still can't connect

Installing Facebook APK in Genymotion

I want to install Facebook APK to Genymotion. Using Drag&Drop or adb it fails with INSTALL_FAILED_CPU_ABI_INCOMPATIBLE. I have followed instuction on http:/

Confusion on the defaultValue migration requirement for upgrade after Room 2.1.0

In Room 2.1.0, it is common to have the following code Version 2 @Entity(tableName = "password") public class Password { @ColumnInfo(name = "dummy0")

How to debug Apps in Android Enterprise Work Profile

I've just started developing with Android Enterprise and need to deploy an app in work profile. My policy (see below) allows installation of apk with debug bu

getContentResolver() is not working

I have a class name MyPhoneStateListener. Here, I want to use getContentResolver, but there is some problem in the class. It's not my main activity. Cursor cur

app:showAsAction ifRoom is not working on appcompat action bar

I have an action bar with the following menu items; <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c

create collage images view gallery in android [closed]

I would like to make 10 images in collage format the sample layout is given bellow: this is sample image I would like to make this type of

How to perform a touch and hold gesture using AccessibilityService?

Path clickPath = new Path(); clickPath.moveTo(x, y); GestureDescription.StrokeDescription clickStroke = new GestureDescription.StrokeDescription(clickPath, 0, 1

Loading Image using Glide in Android

I am trying to load an image from a URL into my imageview using glide but it is not working. I cannot download and display the image. I have added all the depen

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

React navigation: navigate causes app to crash on expo client

I have the below navigation stack. I am trying to navigate from login to signup. Things seem to work completely fine on the android emulator. But when i try to

Timing the capture of screen shots using Androids MediaProjector

I have used mtsahkis's example to implement a screen capture system on Android: https://github.com/mtsahakis/MediaProjectionDemo/blob/master/src/com/mtsahakis/m

How to hide an item from Recycler View on a particular condition?

I am using Firebase Recycler Adapter (Firebase UI Library) to populate Recycler View. I want to hide an item(row) on a condition. I have a LinearLayout contain

How does the Android Viewmodel works internally, internal working of view model

How does the Android Viewmodel works internally? How Viewmodel save the data when the activity gets destroyed and recreated when the device get rotated

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

Failed to open /qemu.conf, err: 2

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but stil