Skip to content
Advertisement

Tag: firebase

Exclude date in timestamp from Firestore

I just want to ask, is there a way to exclude the date in Timestamp from Firestore? Like, I only want the hour and minutes to be displayed. For example, the output of my code below is “Date: Tue Aug 24 23:59:00 GMT+08:00 2021” And I only want the “23:59:00” part to be displayed. Answer What you are storing in

How to update the the bitmap image inside the FirebaseStorage in android without changing its downloadUrl in the realtimedatabase

I want to update the bitmap image inside the URL without changing its download URL in the real-time database because at uploading for the first time I have uploaded the image in the storage and stored it URL in the real time database now I want to update that image how should I approach this ?? above written code was

Getting error : Could not deserialize object. Failed to convert a value of type java.lang.String to long

enter image description hereI have tried changing values many times. Now I have the same values in Firebas. It’s working if I give the values manually in code, but it’s not working while I try to get the info from Firestore. But still, I’m getting this error continuously: That’s my Model’s code } My adapter code } Main Activity }

Advertisement