I have a custom object (AppDetails) that saves String values in pairs (Title, Details).
I have made an ArrayList of this object, which is then the object of another ArrayList.
ArrayList<ArrayList<AppDetails>> appBox;
protected class AppDetails {
protected String DetailTitle;
protected String DetailDesc;
public AppDetails() {
DetailTitle = "";
DetailDesc = "";
}
public void setDetailTitle(String s) {
DetailTitle = s;
}
public void setDetailDesc(String s) {
DetailDesc = s;
}
public String getDetailTitle() {
return DetailTitle;
}
public String getDetailDesc() {
return DetailDesc;
}
}
What is the best way to save this into internal storage in Android?
I want to be able to retrieve this appBox and load it on app startup, and save it to file every time a new ArrayList of AppDetails is created.