Answer the question
In order to leave comments, you need to log in
How to store tasks in an Android app?
I am going to write application - the scheduler.
The question is: how to organize the storage of tasks?
Each task has many fields: title, text, priority, due date, last edit date, etc.
As I understand it, all these fields can be stored in an xml file, and then to output from it, it's just a file to parse and distribute values from tags to view elements that correspond to these tags.
And the xml files themselves are stored in the SQLite database.
It is right? Can the same be used to store application settings?
Answer the question
In order to leave comments, you need to log in
Why xml then? Immediately save the database in SQLite bypassing xml.
I also think that either immediately in SQLite without xml, or if the author has great difficulties with this and wants to use xml, then just to a file. The advantages of the database is that the SQL-lem can select the necessary tasks by setting a certain custom filter, without fencing the bike when filtering tasks from xml.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question