I'm kind of new to android, and I don't have the global view needed to find the right way to solve my problem.
I want to include in my application a big list of blobs. Those blobs should be available by index in the list, without loading the whole list in memory. What I actually want to do is a dictionary-like app, and I need to access definitions by index to display them in a ListView or a PagerAdaper, but there are a few Mo of data and I don't want to load it all in memory.
I've though of a few approach, but none of them seems optimal and I could use some insight :
- Use a sqlite database, but according to a quick research, it's not possible to use a resource sqlite file. I would have to copy the data into a private database, and that would waste some Mo.
- Make it myself from scratch : it shouldn't be too hard to have a big file with all the data and an index file with the seek index for each entry.
Am I right about sqlite not being usable without data duplication ? Are there any better ways to do it than from scratch ?