I’m new to Android development, and I’m developing a memo/note-taking app that allows the user to include hashtags and then browse saved notes by said hashtags.
I already have a note app working that saves just the notes in an SQLite database, but I plan to store the hashtags by including an arraylist of hashtags within each of my note objects (which are already stored in an arraylist)…
My question is, how would I go about storing these arraylists of arraylists (note arraylists of hashtag arraylists) into an SQLite database?
Assuming you have a sql table for notes, you should create another table to store hashtags. You can link every hashtag to it’s note by reserving a column to store the note id which hashtag belongs. Structure should be basically something like this:
Note table:
Hashtags table: