mercredi 23 mars 2016

Use Prepopulated Database or Not? For my Android studio app

I want to make an app that has a list of quotes (maybe 1000++) and each user can choose the quotes that they like by clicking the favorite button (When its clicked, it updates the database so the database knew which quotes that the user favorited.).

And theres a Favorites Activity which display all of the user's favorite quotes

So my questions is

1) Should i use Prepopulated Database (using sqlite browser and put it on the assets folder) or Create the database and insert the list of quotes in OnCreate Method

2) If i use Prepopulated Database can i update the value? (I want to update the favorite table everytime the user click the favorite quotes) because i heard if i put it on asset folder, its a read only?

3) Which one should i use to make this app? I have tried all of them but still confused. Because on each tutorials website has different way of doing this

Sorry if i asked some noob questions

Aucun commentaire:

Enregistrer un commentaire