Category "android"

how to get android on click listener to work despite nullpointerexception

My project throws a nullpointerexception buy attempting invoke an onclicklistener on a null object. here is my code. protected void onCreate(Bundle savedInsta

How to convert. APK file to .AAB file?

How to convert. APK file to .AAB file? Even if it is irrelavant to your field, Please do share this to your friends who are expert in android app development. I

Is there any method in react native to generate android and ios folders again?

I messed up in my react-native android and ios folder while doing some changes in internal files, now project is not starting with lots of errors which is from

Ionic: Redirect Android app after keycloak login

I have an ionic 6 app (using capacitor 3) and i am using Keycloak as authentication provider. My current keycloak version is V 14.0.0. When i test the web vers

super.Composable function crashes at text input

App crashes when trying to type in TextField that is in superclass (video: https://imgur.com/a/6RNc2mU) Exception: E/AndroidRuntime: FATAL EXCEPTION: main Proce

When Onclick operates in fragment xml, app crashes

I'm new to the development scene and I'm just trying my hand at fragments. I have an onClick event defined in one of my fragment XML files, but when I click the

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.