I´m working on a cookbook app. It´s already possible to store new recipes in my SQLite database and show them in a ListView. But now I´m trying to add the possibility to add the required ingredients and how much you need of them for the recipe. For different recipes there will be different amounts of ingredients required.
For example for a cake I need: 1 apple 2 eggs
but for a cookie: 1 chocolate 1 egg 3 smarties
For now I store fixed data (name, description, cooking time) in my database. But with the ingredients I think I will need a variable way to store them. I hope you get what my problem is. Is there a way to store these variable Objects in my database?
Martin
Aucun commentaire:
Enregistrer un commentaire