My app is gets back to previous page without updating data to database. (Using Android studio + Firebase) This is the java code for the activity This is the log at that time, I had already tried to debug but couldn’t get any solution…………………………&…
Tag: android
Grid View Items are displayed too small: Java Android Studio
I am implementing a grid view in java Android Studio to show all the images from gallery into it. Everything works fine but my grid view items are being displayed very small. There is a lot of spacing left horizontally between columns unnecessarily which makes the items small. This is my activity xml file hav…
ListView is not updating once I add elements to the array
I want my ListView to update as I add things to the array. It doesn’t work. I added a notifyDataSetChanged() to the updater code, but it does nothing. I’ve used Log.d tags to make sure the Arrays actually have their values, at pretty much every point of the code and they do. The issue seems to be …
Java Android String Intent displaying null when moving to previous screen
So I have a screen where a user enters their name, on button click they are redirected to a menu where it displays their name. In the menu screen I have a button that takes me to another screen (About Me), on that screen I have a button with an Intent to go back to the Menu Activity. The issue
Download file in Webview
I’m using webview in an Android application. I am trying to download a .pdf file, however when the link is clicked through the application the .pdf file name is changed to “1rcPnhg9_rSes92BiQPotVjXuEAfFnyrf.pdf”, and is not saved with the original file name. How to make webview save the file…
Unable to add window — token null is not valid; is your activity running error. How can I solve it?
I have a login screen. Switching to the HomeScreenActivity when the user logs in. I want to show a popup window message about user information when the activity is opened. But I’m getting an ‘Unable to add window — token null is not valid; is your activity running?’ error. I have a pop…
AuthComponent doesn’t have a @Subcomponent.Builder, which is required when used with @Module.subcomponents
I am learning Dagger 2 from this site https://developer.android.com/training/dependency-injection/dagger-android. I am creating like this, Appcomponent.java AppModule.java AuthComponent.java AuthModule.java But I got the error,AuthComponent doesn’t have a @Subcomponent.Builder, which is required when us…
How to display integer from firebase firestore to Android Studio’s TextView?
I’m currently making a project in which a user segregates their trash and in return, it gives them points. Using those points they can redeem awards. At the moment I’m having trouble how to display the points in Android Studio’s TextView. This is my code. my database structure https://imgur.…
Flutter/Android: You uploaded an APK which has activity […] but without the ‘android:exported’ property. exported=”true” not working
After uploading my app to the google play store for internal testing, I get the following error message: I’ve tried setting the android:exported=”true” in my manifest like so: But I’m still getting the same error. In my build.gradle files I have these configs: Feels like I have tried e…
how can i use if else statement to put a number in the EditText in android studio
im new to android, but im developing an application that has conditions in the background.i want if some one inputs the AVB number in the first EditText, the second one should be automatically filled from the ranges in the if statement and then multiplies and puts the answer in the tfeed TextView. please help…