Category "android"

Activity result contracts with Ucrop: cannot get crop result into app

I have an activity that is supposed to get an image from gallery and preview it before allowing the user to upload it to a database. I am using UCrop as my imag

Programmatically register/deregister intent-filter for an activity

Assume that I have app X, with Activity A which is launched by some intent filer F defined in X's manifest file. Is it possible for X to programmatically dereg

Parameter type must not include a type variable or wildcard

in my android app I use Retrofit 2: public enum OperationType { @SerializedName("payment") PAYMENT, @SerializedName("payout") PAYOUT, @Seri

How to fix the 0x3009 (EGL_BAD_MATCH) issue while invoking eglCreatePbufferSurface?

I use the createOffscreenSurface from grafika: /** * Creates an off-screen surface. */ public void createOffscreenSurface(int width, int height) { if (mE

Content Description in Multi Language

how I can add support of multi-language for content description. I am developing a kiosk app where I want to take confirmation from users for the language they

Fast update Android notification

I write simple audio player for Android. I wrote basic functional and now I want create notification for control audio player. I use Android classes Service and

Android: Cannot find element id/name in google form android

I am trying to integrate google form with android using this link But when I created a google form as mentioned in the tutorial I was not able to find the name

"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