Category "android"

How to get position in Horizontal RecyclerView?

I'm a Kotlin's student. I'm doing a tutorial layout using RecyclerView horizontal, but I'm having an issue, already tried to find some answer on stack but didn'

How to perfectly hide the bottom navigation bar

I am developing an apps which needs enter full-screen mode, however, no matter I tried. The bottom navigation bar is hidden but it will pop up for half second w

Codes Work in USA but not in China?

I am using A/Studio 2.2 My code unpacks a bundle of LatLng-parameters from a preceeding activity and displays the corresponding G/Map, works well in USA. Loved

Android Edit Text Focus Gone after input things in expandable list view

I have problem with the edit text. I have edit text inside child view for each group, and I can add the new group dynamically, when I key in the edit text for t

Error when connecting Firebase to Android Studio [duplicate]

I am trying to learn how to create an Android application with Android Studio. My project is currently blank, the only page is MainActivity.ja

Retrofit2 not working when enabling Proguard

I have an application which uses retrofit to fetch logo form an API. When i don't obfuscate and shrink my code, everything works fine. But when i enable it, th

Could not connect to React Native development server on Android

When I run react-native run-android, it gives me the following error: Could not connect to development server Package server is running and I can access

D8: Cannot fit requested classes in a single dex file

I am trying to add the below dependencies: firebase_auth: ^0.14.0+5 google_sign_in: ^4.0.7 cloud_firestore: ^0.12.9+5 fluttertoast: ^3.1.3 image_pick

RuntimeException: API key not found. Check that geo.API_KEY is in the AndroidManifest.xml

I am attempting to compile a simple map display on my my phone, but the app keeps closing. It seems that all my ducks are in a row, but I'm just stumped. This

After upgrading gradle to 4.0.0, retrofit do not receive response anymore

After upgrading from gradle 3.6.3 to 4.0.0, retrofit only able to send request but not able to receive response. From the logging I can only see: I/okhttp.OkHtt

On React-native, on Android, canOpenURL fails & OpenURL throw an error: Could not open URL

On a React-Native mobile app Linking.canOpenURL and Linking.openURL fail if the URL refers to an app screen, while it works when referring to an HTTPS URL. I su

Getting 403 Forbidden error when trying to load image from Firebase Storage

I'm using firebase storage to store and load images for users on my android app. All users must be authenticated before using it. Occasionally, some user profil

How do you implement LintFix to add missing annotation to class definition in Android

I am investigation custom Lint Rules development in my current Android Application. My detector finds all Activities in my project that are not annotated with a

What exactly is the client secret for Google OAuth2?

In Google's OIDC guide, section Exchange code for access token and ID token states that I must provide a client_secret. If I select the relevant client ID from

Could not determine the dependencies of task ':app:preDebugBuild'. In React Native

What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configuration ':app:debugRuntim

For loop not stopping and random generated number not being saved (number guessing game)

I'm doing a number guessing game in an Android app. You have three tries to guess the number. If you run out of trials, then you loose. I added a for loop so th

How can I embed Ffmpeg extension into Exoplayer under windows?

For some reasons I have to work under windows 10 OS with Android-Studio as IDE. My problem is that, exoplayer uses software and hardware decoders of Android-TV

Unit test the new Kotlin coroutine StateFlow

Recently, the class StateFlow was introduced as part of Kotlin coroutines. I'm currently trying it and encountered an issue while trying to unit test my ViewMod

Host name may not be empty

After upgrading my Android Studio, I got this error whenever I wanted to generate a signed Apk (without any detail of where the problem is). There was no proble

Unit test the new Kotlin coroutine StateFlow

Recently, the class StateFlow was introduced as part of Kotlin coroutines. I'm currently trying it and encountered an issue while trying to unit test my ViewMod