Category "android"

How can I make AndroidX the default library for new Android projects?

Google now recommends using the AndroidX libraries over the older support libraries (read here), yet each time I start a new Android project in Android studio,

Move package from Android manifest to build files

My Android Studio claims that declaring the package in the manifest like this is deprecated: <manifest xmlns:android="http://schemas.android.com/apk/res/andr

Adaptive Card text overflow in Microsoft Teams Android app

I have the following JSON code for my adaptive card: { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version":

sdkmanager install cmake fails

I trying to install cmake (3.10.2) using following command on Ubuntu /opt/android-sdk/tools/bin/sdkmanager --install "cmake;3.10.2" But getting Warning: Fa

Firestore Paging Adapter- How to know if query returns 0 results

I'm using firestore paging adapter to populate my RecyclerView with data from Firestore, if collection in Firestore is empty I would like to show a TextView to

Cancel multiple Retrofit API calls at once

Past few days I am searching for a Retrofit2 feature. Is there any option or way to cancel multiple API calls at once, requested from a client? For example, I h

React navigation 5 really slow and dropping JS FPS on Expo

I am currently working on a React Native (Expo) App and I am facing some performance issues. I have not found any answer yet for my problem so I hope someone ca

RecyclerView is not going to the orignal starting position

Recently I have added saving and restoring functionality in my recycler view so when I navigate between different fragments the recycler view maintains its posi

RecyclerView is not going to the orignal starting position

Recently I have added saving and restoring functionality in my recycler view so when I navigate between different fragments the recycler view maintains its posi

Find separate REST API Key & MAP SDK Key for Android - mapmyindia API

On the mapmyindia (map my India) API console, under "Credentials" tab of the Default Project, a default (and single) key is present "REST / Map SDK Key". In the

How to deal with viewholder and flow in recyclerview?

I would like to use my variable flow to save integer and keep him. Then every viewholder in recyclerview observe flow and react if it is clicked. For example: I

Utilizing the Websocket Data from Android cellphone while running

Using SensorServer, I am establishing a connection between an android phone and Python and utilizing the data sent. The accelerometer of the Android device is u

How to check if an APK/AAB binary was signed in debug mode?

Let's say I am responsible of a tool to publish APK/AAB to play store and I need to do some pre-checks before doing so. How can my tool check if an APK/AAB bina

Flutter: Missing Plugin Exception Raised when running release builds of android app

Issue I am currently working on an app which uses multiple packages. The app works like a charm in both debug and profile modes. But when I get the release buil

How to fix net::ERR_INVALID_RESPONSE in webView android

after update chrome to last version (75.0.3370.143) my app which use webView is showing error when load data. "Web page not available The web page at data:

What's the difference between a UI test and an E2E Test? And What's the benefits of each?

Our team is considering starting testing based on user scenarios. So, we are picking a E2E framework. Searching for UI test lead to the following: So, I found

Active Element Issue on Firefox for Android

I want a button to change color while the user has clicked on the button and hasn't released it yet (on Mobile: while the user touches the button). For changing

ScrollView programmatically scroll on button press in react native

So I manually created an onboarding screen in React Native using ScrollView and also I added a button labeled next to enable the hidden screen to move in on the

Could not resolve all files for configuration ':app:androidJdkImage

I am trying to build flutter apk on debug mode from android studio. Flutter run I get this error: Launching lib/main.dart on sdk gphone x86 arm in debug mode...

How to check adb access over ethernet?

I want to connect my Android device via ethernet to access adb. The device is not connected to any internet/wifi. The ethernet cable should connect the laptop w