Answer the question
In order to leave comments, you need to log in
How to implement adding items to the cart in an Android application?
I am making an online store, naturally there is a basket of selected goods. The cart is local. I see two options. The first is with the help of a database - for example, Room. The second one is in sharedPreferences. Everything has to be reactive. The database is convenient, but you don’t want to connect the database for the sake of the basket. In SP, it's somehow a crutch to do this - it seems to me so. Ask for advice from more experienced developers. Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question