I have app that I wrote last year reading data into a byte array for time, date and temperature from an external device. The external device stores the temperature ever hour and has six weeks worth of temperatures stored. The external device is constantly overwriting the oldest data so I always have the last six weeks worth of temperatures. My App has a string array 1008 long to store six weeks worth of temperatures as below
private static final String[] fullDataArray = new String[1008];
My app reads the raw data from the byte array then writes each element of the string array until it has done all 1008 as below,
fullDataArray[arrayCount] = (nowDataString + " Temp = " + tempString + "c");
This then displays the data in the string array in a list view as below,
private void printList(){
// create array adaptor and assign array to list view
final ArrayAdapter adapter = new ArrayAdapter(this,R.layout.data_layout,R.id.textItem,fullDataArray);
setListAdapter(adapter);
}
I'm then reading this list view which has six weeks worth of data for the date, time and temperature and manually writing to an excel file to save the logged data.
Is there some way to export either the raw byte array or the string array to save me manually copying all the data to excel before it is lost ?
I've not done any android programming prior to this App and have not done any since, so I'm a bit rusty.
Any ideas or suggestions on how to go about this would be most appreciated.