I am currently developing kind of a Database application for android. However, since the amount of entries is quite low, I don't feel like I need to use a Sqlite database.
Now, I currently have the "reading" from the save file in the onCreate()
method.
But this also loads the file new when I turn the phone from horizontal to vertical display mode, which though it does not affect performance in a huge way, since I don't have that many entries, still bothers me, as I would like to do it the proper way.
What would the "correct" way to do this be?
private TableLayout tblLayout;
private ArrayList<Entry> listOfEntries;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
tblLayout = new TableLayout(this);
// this basically populates my ArrayList
listOfEntries = readFromFile(saveFile);
setContentView(tblLayout);
}