vendredi 6 février 2015

How to use SQLite to store alarm clocks data?

I want to code Alarm Clock application on Android.


I don't know good way to store alarm clocks data because there are so lot of different attributes of an alarm clock.


Of course we need columns _id, time.


Need to store date, but how?


User can set up alarm clocks just for yesterday, so we can create one column date, but what if user want to set up alarm clock to retry on Monday and Wednesday every week fo example? How to store this kind of data?


May be just create a columns for each days and create isActive to turn on or turn off?


Please give me a correct way to store alarm clocks data in SQLite database. Thank you.


Aucun commentaire:

Enregistrer un commentaire