I’ve a Spring Boot Application and I have to develop an API to download a file from GCP bucket. So I have the download path and the name of the bucket, e.g. Before I start writing the code for download, what are the preliminary steps? I read that I need a GOOGLE_APPLICATION_CREDENTIALS environment variable, where can I find it? Once
Tag: google-cloud-platform
App crash with GC When an object added to firebase – Android Studio
Hello I have an Android app when an update ( Insert new data in firebase or update an attribute ) is done in firebase the app will crash for 15-30 sec. when I checked the log, it show that’s in that time the GC is working and it takes a lot of time to do his work so the app
Retrieve count data from Firebase Java
I am trying to count the number of children in my DB table that meet a certain condition. If the isSeen column equals false then I want to count that, if it equals true I don’t want to count it. Currently, it’s not working but if I change the query from Query query = usersRef.orderByChild(“isSeen”).equalTo(true); to Query query = usersRef.orderByChild(“isSeen”);
How to make auto refreshing on recyclerview Android while getting data from firebase firestore
I added a swipe SwipeRefreshLayout but the data only show when I swipe down to refresh. If I don’t refresh the data didn’t show. I want an auto refresh on the background when an activity is created. This is my XML After getting data from the firebase I added it to the list and add that list into the adapter.
Google Cloud Appengine returns ‘404 Error’ when calling Spring Boot REST APIs
I have deployed a spring boot application to Google cloud appengine service. When I run the application locally using mvn appengine:run everything works fine and I’m able to send requests to REST APIs and get expected responses back. In fact when I deploy the application to appengine I can see the application logs which indicate that server is up and
Firebase Database gives null values
This is my Firebase Database snippet I am trying to get the name of the expense and the expense amount and set it into a RecyclerView. This is my adapter for the RecyclerView: This is my POJO class for Expense Model This is my code snippet The log shows that every value in the expense class has been set to
How to get Each value from Firebase?
How can I get each value from Firebase and set it to my variable (Lat&Long) My Code : and The log result said Answer Since you’re using Java, here is the code that can help you read the value of Lat, as well the value of Long: As you can see, there is no need for any loop. You can
Database URL do not match
I’m trying to send user’s data to Realtime Database in SignUpActivity in my project. For that I created a database reference and copied the url that is written in my Realtime Database with the following code: However, when launching the app I get Fatal exception stating the following: 2022-06-21 14:50:24.921 8323-8323/com.dinocodeacademy.maingoquizagain E/AndroidRuntime: FATAL EXCEPTION: main Process: com.dinocodeacademy.maingoquizagain, PID: 8323 java.lang.RuntimeException:
How to give read access permission for Firestore imageurl in Java
I am able to access the Firestore image url on my browser window. I want to convert this image url into BufferedImage after reading I have to find sub-image to get barcode value presented on my image. Here is the code, I have connected with my bucket using Firestore and selecting few images from bucket based on conditions. And rules
When i retrive children from firebase using recylceview TextView Won’t Show
I’m using Android Studio when I run my app and add or show RecycleView list, text view shows only the title not data inside firebase this is the textviewaddCateogryclass What would be causing this? used the same data on firebase child. firebase realtime database Firebase ModelCategoryClass AdapterCategoryClass CategoryAddActivity class Answer The following lines of code: Should be changed to: Meaning