Category "android"

keep the margin when the referenced view is gone in ConstraintLayout

I have 2 TextViews as in the xml below. If I hide the textView2 at runtime, I lose the bottom margin. How can I keep the bottom margin between textView and pare

cornerRadius not working with backgroungTint

I am a beginner in android dev. I am making a calculator in which i want to add round button using corner Radius. the problem is that it is working fine when i

Android 8.0: java.lang.IllegalStateException: Not allowed to start service Intent

On application launch, app starts the service that should to do some network task. After targeting API level 26, my application fails to start service on Androi

Kotlin Android View Binding: findViewById vs Butterknife vs Kotlin Android Extension

I'm trying to figure out the best way to do Android View Binding in Kotlin. It seems like there are a few of options out there: findViewById val button: Butto

react native access content:// uri fails

Working with the following react native packages in android: "react-native": "0.47.2" "react-native-document-picker": "2.0.0" (removing the ovveride to compile

Pre-packaged database has an invalid schema error

I'm building an Android application based on an old Android project. In my new application I'm using Room. I have to use the same database that is used in the

How to Get Image Path in my App which is Selected from Whats app's Chat?

i have demo application with image view and in this image view i need to set image from which selected from whats app Chat, Currently i was getting Path of sele

App build with eas build crashes on start

I have a react-native app, I'm trying to test my app on ios&android ( testflight and playstore), app was build using eas build, but app crashes suddenly on

Unity Build Error: Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54

i am using ARFoundation 4.1.0 preview package and in XR plug-in management in unity project settings i have enabled the Arcore but the problem is when i build i

Unity Build Error: Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54

i am using ARFoundation 4.1.0 preview package and in XR plug-in management in unity project settings i have enabled the Arcore but the problem is when i build i

How to display title and snippet on a google maps composable marker, without clicking on it?

I'm using the new google maps integration library with jetpack compose, however I want to modify a behavior of my markers: when the map initializes I want to sh

Room database reset to default values which was set by prepopulating database when clearing app from background

I have a database which is prepopulated with some tables which is working fine. I have prepopulated my db. like this Room.databaseBuilder( get(),

Azure DevOps iOS and Android React Native Build Failing on Pod Install and Gradle Build Steps

I am trying to create CI/CD pipeline, for iOS and android, in Azure Devops for a React-Native app. With the android pipeline, whether I choose to create a yaml

cardBackgroundColor and cardCornerRadius not working in AndroidX

I'm struggling with CardView corner radius and background color with AndroidX libraries. I've defined my layout as below: <?xml version="1.0" encoding="u

Create BaseFragment and extend this Fragment in ChildFragment

I don't know whether this is repeated question or not, But I didn't found any solution. The problem is, there is a screen which has similar views in all the sc

Xamarin.Forms MSAL authentication java.exe exited with code 1

<activity android:name="microsoft.identity.client.BrowserTabActivity"> <intent-filter> <action android:name="android.

Global variable in Kotlin (android studio) initialized in one activity remains at initialized value in other activities

I would like to implement a global variable that updates its value when going from one activity to another (and back). To explain in better detail, let's say my

How to add smooth movement, relative positioning and animations to chat heads like views

I am using "Draw over other aps" to show a chat head like view. I need to position it relatively and show animation while dismissing it. Please see first video/

how to get viewModel by viewModels? (fragment-ktx)

I am working with Single viewModel for the Activity and all of it's fragment. So to initialise viewmodel if have to write this setup code in onActivityCreated

swift "completion: @escaping" in kotlin language. How to use callback in kotlin?

I am looking for a way of completion block for my kotlin code. In Swift i have my function: func fetchRegister(with request: RegisterRequest, completion: @es