How to save last visited url in android webview? [closed]

So im writing a very simple web-view app that shows certain types of users a web-page that I get from Firebase Realtime Database. Everything works just fine but upon closing an app, user gets sent …

How to update only changed item with MutableLiveData in Android?

I have nested fragments with ViewPager2 and Tabs, and I’m loading data into RecyclerView with MutableLiveData. Everything works fine till I update something on my Firebase Realtime Database (eg. name …

Is there a way in firebase android to fetch data within a range?

I have a database in firebase realtime database.My DB look like this : I want to fetch data within a date range. That is if user select 03-09-2020 as start date and 05-09-2020 as end date,what i want …

save unique key firebase to child

I have a database like this “Chats” : { “-MCzU6r-JqvAkC9unjru” : { “isSeen” : false, “message” : “H”, “receiver” : “…

Arraylist error index out of bound or it is null

As we know there is no multi query option to firebase realtime database, so instead of using default FirebaseRecycler methods I am trying to manually feed keys from arraylist to the recycler view. In …

How to make addListenerForSingleValueEvent to work in loop?

I’m trying to access the addListenerForSingleValueEvent for a specific number of times based on the amount of item’s present in cart but since it listen’s for only one time I’m unable to fetch the …

Trying to retrieve data from Firebase and get this error: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

The database I build an application and I’m trying to retrieve user info from Firebase. After the registration form, I have a new activity where the users need to write their personal info and that …

Adapter doesn’t show product image and price from Firebase Realtime Database

I am trying to retrieve data (a product image and the price for it) from Firebase Realtime Database and put it in a recyclerView, but I have some difficulties. In my database I stored the image url …

Failed to convert a value of type java.lang.String to int?

I am trying to display the total expenses in a Text view but the application keeps giving me this error. The application uses Firebase and I had the getAmount() and setAmount() initiated as String …

Firebase Datasnapshot returns null value

I want to retrieve this value from this node (“id”), and the value i get is null. I have googled so many solutions that this might have to do with asynchronous way or something, i guess? This is the …