Category "android"

SharePrefs not working for Android Spinner - behaviour very erratic

I have a spinner inside of a dialog box, which you can use to select a currency for my app. When you select a currency, it connects to an api from a currency si

Jetpack Compose Slider in LazyColumn changing while scroll

I have a list that includes Slider the problem is when I scroll the slider detecting the tap event and change it, see attached gif The excepted behavior is whe

use requireActivity() or getActivity() in fragment

When to use the getActivity() in the fragment and when of requireActivity() Is it better to use a requireActivity() instead of a getActivity()? In fact, I want

Layout not moving up when keyboard is open in Jetpack Compose

I have a layout in Jetpack Compose where I have a couple of composables (text view and input) that I need to stay at the top of the screen, and then another com

Android studio can not recognize manifest file

My Android Studio Chipmunk can not recognize AndroidManifest.xml files in all projects. Other .xml files are correctly recognized. AndroidManifest is recognized

kivmob doesn't show ads in android app python kivy

I try to add ads in my app. I added in my buildozer.spec: android.permissions = INTERNET, ACCESS_NETWORK_STATE requirements = python3,kivy, jnius, kivmob andro

Firestore Query Default Order

The following is stated in the official documentation: By default, a query retrieves all documents that satisfy the query in ascending order by document ID. Yo

How long is the delay when refactoring the targetClass name in android application shortcuts.xml

I am investigating the use of Google App actions with the Google assistant in my current Android project. I have published my app to the google play store as an

How can I pass tags when starting a cucumber android run using Gradle?

I have a suite of cucumber android tests (they are instrumented tests) and I run them using gradlew connectedCheck. What I'm trying to do is run only certain ta

How to call keypress event programmatically for TextField using jetpack compose, android?

When user type in TextField it will call onValueChange{} callback. but when we set the value in TextField the onValueChange{} callback will not call. I found ht

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify

After upgrading to android 12, the application is not compiling. It shows "Manifest merger failed with multiple errors, see logs" Error showing in Merged mani

Change the background color of exposed dropdown menu

I think Android developers are kidding us. First they removed the real spinner from the Material Design and second it is somehow impossible to style. Look at th

Saving an AnimationDrawable object to a file

I am very new to android development and trying to make an application that will convert a video to GIf using MediaMetadataRetriever and AnimationDrawable. I am

How to center spinner items using styles.xml?

How to center spinner items through styles without creating custom item view? Without extra work in code, just using styles.

React Native Picker Change Overlay Color And Prevent Text Cut

currently i'm using https://github.com/react-native-picker/picker library But i got some problem, my placeholder text is cutted and i want to change the overlay

How to ressolve TypeError: Network Request Failed for react project running at android device

While running my react native app on android device using expo the api response are not coming which is done using fetch and POST method and getting this error:

Retrieving a plain text error message from a call response

I am building out the login form for a client, and their backend, upon successfully authenticating the user, returns the user validation data in a JSONObject as

Lottie Animation is too small

I am using a lottie animation in my android app. I downloaded the json file and pasted res/raw. I am using it my app using XML and Java, but when I run the app,

android 10 how to disable Randomized Mac Address in source code

Currently, I am working on connecting specific WiFi in the source code. But the problem is, since Android 10, the default setting is to set a random macArress.

Get the ip that an app uses on bluestacks

I want to get the IP that an app uses on bluestacks or any other android emulator, how can I do that? I tried using wireshark, but bluestacks connect to tons of