I am trying to create an app that will give users the option to create a new project or select an existing project. These projects will contain a name (title) and a group of images they are allowed to take. Basically an album. The only way I can think of doing this is by writing to a file the name of the project and a bunch of id’s for every picture they had selected for that project. Store this in an array and reload it every time they start the app. Is this a good way to go about doing this or is there a more eloquent way of doing this?
Share
you could use a sqlite database to store the projects in a table and in another table store the list of images and in a third table a list which image belongs to which project(s).
You could use the following tables:
Projects table
Images table
Project Image relation table
Have a look at this sqlite database tutorial:
http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
or this:
http://android-er.blogspot.ch/2011/06/simple-example-using-androids-sqlite_02.html