I'm just starting to program on Android. I have an application that gives progoses based on mathematical methods of stock papers and warns when paper paper will rise or fall. I have a depot class that contains a list of documents that are being viewed. My question is what is the best and, hopefully, the easiest way to store data.
As I said, my depot has an ArrayList of my Stock Paper class. User can add and remove. My paper class has the following values ββthat must be saved:
protected String Bezeichnung; protected String WKN; protected String ISIN; protected String Typ; protected String Schwerpunkt; protected String Domizil; protected String KAG; protected Date Stand; protected List<History_Entry> Historie; protected Date Startdatum; protected Date Enddatum; protected int Durchschnitt1 = 200; protected int Durchschnitt2 = 38;
The hard thing is the value of History. It contains all the historical values ββof StockPaper. This is an ArrayList with the class History_Entry. History_Entry simply has a double value with a value and a corresponding date. Further, it has two mean values, but I can recount them at the beginning.
My idea is to create a database containing all historical values. And a database that contains the name of the paper stock and all other values ββfrom the Paper class.
I hope I'm not far off, but I'm glad to learn something new.
source share