M
M
ministry_of_silly_walks2019-08-12 20:55:59
Java
ministry_of_silly_walks, 2019-08-12 20:55:59

Is a database needed here? When should you use a database in a simple application?

I am writing my first Android app. It's a simple boxing timer that needs to remember user settings like round time, language, sound, etc. Does it need to be stored in a database?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
orbit070, 2019-08-12
@ministry_of_silly_walks

Such data can be stored in different ways: write to a file, use shared preferences, database. There is no point in saving such information to a file, choose between shared preferences and the database. SP is usually used to save user settings (which fits into your task), the database is usually used to store data of a more content nature (for example, a list of books is more correct and more convenient to store in a database). In your case, it doesn't matter where exactly to store it, but I would not complicate it with a database and use shared preferences.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question