Category "android"

"Task 'compile' is ambiguous in root project" - Android Studio

Every time I try to run my project, clean it or build it I get a gradle error: Error:FAILURE: Build failed with an exception. * What went wrong: Task 'compile

How to use lombok with Kapt3

When I try to run Java/Kotlin android application with Lombok while using Kapt3: apply plugin: 'kotlin-kapt' javac compilation fails with numerous error: ca

Change fill color on vector asset in Android Studio

Android Studio now supports vector assets on 21+ and will generate pngs for lower versions at compile time. I have a vector asset (from the Material Icons) tha

Android: How to hide or close topmost activity?

In my app, I need to start the built-in camera application using the action INTENT_ACTION_STILL_IMAGE_CAMERA. The reason of this action is that in this case, I

Error - Intent filter for: BrowserTabActivity is missing. While using AzureAD MSAL Lilbary

Integrating AzureAD SSO to my android app. I have registered an app on Azure portal & get the auth_config.json file against the same. Implemented the sample

Error:Execution failed for task ':app:kaptDebugKotlin'

I'm new to using Kotlin and trying to set it up with Dagger2, I've seen some few examples but none of them seem to work for me. I keep getting this Error:

Is there an elegant way to save and restore View state in Kotlin?

Writting custom views that keep their state across configuration changes in Android is verbose, look at the amount of boilerplate code for saving the state of

Sometime video buffering very slowly in exoplayer?

I don't know why, but sometimes Exoplayer buffers my video very slowly. My server is responding properly and the internet is also fast but sometimes Exoplayer b

Play Audio in Flutter from URL

I am new to flutter and I want to play audio file from URL path with play, pause and seek button and also show notification in player.

Cannot resolve symbol Theme.MaterialComponents.Light.NoActionBar (Android Studio)

I've got an error for 'Theme.MaterialComponents.Light.NoActionBar' in styles.xml (the 'Theme.MaterialComponents.Light.NoActionBar' is colored red because of err

Write on sdcard permission android +6

I want to write on sdcard (External sdcard) on android +6. When I use this runtime permission: <uses-permission android:name="android.permission.WRITE_EXTE

View in the view pager overlap between previous and next view

I am using ViewPager for sliding effect in my app. I have pager.setPageMargin() to make next and previous views visibility, unfortunately my next view is over

How to call another navgraph fragment from another nav graph without lossing current destination in andorid

I have Two navgraph inside my project graphA { I have some fragments inside my ( Graph A ) login fragment ( this fragment set as home ) and signup fragment } g

Android 12 Work profile device identification

With the latest changes in Android 12, there is no way on work profile to obtain any kind of device identifier. In this post specifies to use the Enrollment ID

I want to create AR app in UNITY the uses GPS, but the sensor is jumpy

On one hand i have the image-based AR that Unity provides me, which is amazing in making things seem as if they are actually around my in the real world. Proble

Time Selector- Jetpack Compose

I am trying to develop a time selector ui as given below. But i m not getting any idea what is the best approach to it. tried using lazy columns and android vie

Update the Android Gradle plugin to version 3.2.0 or higher / generate Flutter signed APK

I'm developing a flutter cross-platform supporting app using Android Studio. Now I'm trying to generate signed APK for app-release but I face this following err

Why mediaPlayer.stop(); is not working here?

[AS] I've loaded two sounds that can play and overlap with no problem, however I can't seem to stop or pause them. In its current state, the stop button only w

material slider and range slider tooltip not always visible

i wanted to keep the tooltip value visible always and also the text of tooltip should be background transparent. i tried https://github.com/material-components/

on back press splash screen showing instead of last opened screen

I am making one android application. When i open the app splash screen showing and then it goes to mainactivity. now if user will press the back button and open