OVERVIEW:
I have a database that contains more than 128,000 records, and each record contains about 12 columns (8 string columns with lengths of about 1-2 words each column, and 4 columns containing reference or indices of 4 images respectively).
GOAL:
What I want basically is that when the user chooses a chapter contained in a spinner, the app shall retrieve the data relevant to the chapter chosen and display it on the screen (this is oversimplification though).
WHAT I DID but FAILED:
- Creating a class for each column. (This taught me, in the hard way, the 64KB limit thing in Java.)
- Creating an XML resource file for each column. (Failed because apparently, there's a limited number of ID, in effect resources, in an app)
WHAT I'M PLANNING TO (LEARN AND) DO:
Create an SQLite Database. (But I worry how would I prepopulate it with my data? Wouldn't this lead to the 64KB limit error?)
Create a text file for each column and store them as raw resources then retrieve them using input stream. (I, TBH, don't know what I'm talking about here. I picked this up while reading some sites yesterday).
So, what should I do?
(MORE DETAILS):
- My app has a spinner containing 114 chapter titles
- When the user chooses a chapter, the verses of the chapter will be displayed in the screen.
- Each token (or say, word) of each verse is clickable.
- Each token (including its details) represents one record in the database.
- When the user clicks the token, the details about it will be displayed.
- The details consist of 8 string columns, and 4 columns containing reference to the 4 images (image of a page of a dictionary).
- The total aggregate size of the images is about 90 MB.