Category "android"

How to identify the HDMI port and TV switch in android programmatically?

I want to know how to handle the HDMI switch to TV's home events. I have developed an app with exoplayer for FireTV. Issue is when I switch between HDMI port an

How to fix "Android resource linking failed" error in Android Studio?

I just started learning and working with "Android Studio" software and editing a project. It took too long to figure out how to work with that. I just fixed man

Build android.Why say "Missing nullability on parameter..."

I want to add my animation in android. First I copy TranslateAnimation.java to MyAnimation.java, and change class name. But Android build failed. error message:

Android - listFiles() doesn't list some files

I'd like to make an Android app to list files and their size, a bit like WinDirStat or TreeSize on Windows, or DiskUsage on Android. I tried this to get a list

Jetpack Compose Place every question in it's own screen

I have a JSON data looking like this questions: [ { id: "1", question_type: "FREE_TEXT", answer_type: "SINGLE_LINE_TEXT", question_text: "what's your name?", op

React Native Samsung Universal Link stopped to work after upgrading to Android 12

Using a Samsung S10e on Android 12, I was able in the past to open our React Native application (https://github.com/pass-culture/pass-culture-app-native) throug

Google Fit API does not work in internal testing

I am using Google Fit API to get fitness data for a kotlin app. But API does not work in internal testing on Google Play Developer Console. When connecting the

Text Composable dimensionResource not working as fontSize parameter

When I plug in fontSize = dimensionResource(id = R.dimen.textLabelTextSize) where the dimens or 54sp or 60sp depending on the device, I get an error on Text() "

How to do Assisted Injection with Navigation Compose?

I've a composable called ParentScreen and a ViewModel named ParentViewModel. Inside the ParentViewModel, I am collecting a value from my repo. class MyRepo @Inj

Is it possible to pass Android Composables as an array?

In the example below I can pass several composables as a function to a Column. Is it possible to pass them in any other way? Ideally, as an array of composables

ShapeableImageView's stroke is getting cut by borders

I have a ShapeableImageView here, with 5dp stroke: <com.google.android.material.imageview.ShapeableImageView android:id="@+id/profile_picture" androi

Failed to apply plugin [id 'com.android.internal.library']

I am trying to reanimate an old application A problem occurred evaluating project ''. Failed to apply plugin [id 'com.android.internal.library'] Cannot add a

How to go from one fragment to another fragment in kotlin?

I have a button in fragment A and when I click on fragment A, I want it to be redirected to fragment B. How to achieve this in kotlin? Right now I am using this

Android studio compile takes forever

My Android Studio compiles are taking forever. Min 10 mins and quite often longer than that. This started with the upgrade of gradle plugin to 7.0.4 This is my

How to operate app and browser combined per test automation

I am searching for a test automation tool that supports the following test case: start an app on the smartphone click on a button; the click on the button start

Android Mockito test cases with Retrofit

I am new to test cases and I am trying to write test cases for the below code but I did not get success after trying several method. My main target is to cover

Google Play (Issue: Inaccurate Target Audience)

See This Google Play Mail:- Issue: Inaccurate Target Audience We determined that your app and store listing contain elements that appeal primarily to chil

"APKs are not allowed for this application" when submitting an expo build to play store

I'm trying to submit a build to Google play internal testing but it fails with the error: Google Api Error: Invalid request - APKs are not allowed for this appl

Unexpected element <uses-library> found in manifest

I am using org.apache.legacy library in my xamarin project. I have added <uses-library> tag in my manifest file but I get an error while building the proj

Scaling Button Animation in Jetpack Compose

I want to build this awesome button animation pressed from the AirBnB App with Jetpack Compose Unfortunately, the Animation/Transition API was changed recently