Category "android"

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

React native webview copy and download not working

I have built an android app using react native. Inside the app I am using the react-native-webview package to show a React app. import {WebView} from 'react-nat

How to fix incorrect position I get when dispatching an update to ListUpdateCallback using DiffUtil

I have an Android application where the user can modify multiple String items using EditText at the same time, so I need to figure out what have changed in orde

Converting RecyclerView to ViewPager / PagerAdapter

Background - New to Android, but pretty nifty with moving layouts around, understanding Java, Kotlin and XML. However this task seems to be way above my head.

Calabash-android resign with signature scheme v2

I'm trying to install and run a debug APK with Calabash-android, but it is failing because the scheme of the signature. My original APK is signed with the debug

Android Printing, why do I get warning when i try to print from my mobile

When i try to print from my Android device I see a dialog prompt with a message Your document may pass through one or more servers on its way to the printer. T

How to get/generate pin sha256 from certificate

Simple question I am trying to do certificate pinning in android using the network-security-config but I am not sure how to get the the SHA-256 to put in the pi

Why READ_PHONE_STATE permission asked "make and manage phone call"?

For getting the IMEI i using from this code: TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (ActivityCo

Error: Package "@ionic/angular-toolkit" has no builders defined

[error] Error: Package "@ionic/angular-toolkit" has no builders defined.} at WorkspaceNodeModulesArchitectHost.resolveBuilder (C:\Users\Lenovo\Documents\kr

How to check for android resources that are missing default values?

I am curious about how to find android resources that are missing default values. For example, it is possible to define corner_radius in dimens-sw600dp.xml, wi

How to add Repository maven in new Android Studio Project setup(2022)?

I want to use the maven library in the android studio project. in the library documentation, they mention adding like this, repositories { maven { url 'http