I’m new to Android programming however I do have some Java experience.
What I would like to know is, what is the best approach for storing ArrayLists and such in SQLite for Android? Storing in tables takes, in my opinion, the point of OO-Programming however I don’t wanna use db4o since later I wanna port my application to iPhone.
When it comes to this, which approach do you guys use? A fairly simple example, if I have a class “House” with an ArrayList of “Objects” how should I store them. Also I don’t wanna use Serialization.
This is a classic example on using a sqlite database to store data. basically every object will represent a single row in your table (every primitive will be a column). you will query the table and use a cursor object to traverse through the elements. its somewhat the database alternative to an arraylist.