Android saving jexcel cells
<p>I am using jexcelapi to store game data. I can write to cells and retrieve data, however when I exit app and return the cells seem to return to their initial states (i.e. they do not retain the info from the previous run). How do I save the data/why is data not saving? Here is relevant code:</p>

<p>double thrown;<br>
double exThrow;</p>

<p>synchronized public void exce(Context context) {</p>

<pre><code>try {
    InputStream istream8 = assets.open("myFile.xls");
    WorkbookSettings wbSettings2 = new WorkbookSettings();
    wbSettings2.setLocale(new Locale("en", "EN"));
    Workbook workbook = Workbook.getWorkbook(istream8, wbSettings2);

    OutputStream out2 = context.openFileOutput("myFile.xls", Context.MODE_APPEND);
    WritableWorkbook copy = Workbook.createWorkbook(out2, workbook);

    WritableSheet sheet2 = copy.getSheet(0);
    WritableCell cell = sheet2.getWritableCell(0, 0);
    Number l = (Number) cell;
      l.setValue(l.getValue()+thrown);
      exThrow = l.getValue();
      copy.write();
      copy.close();

} catch (IOException e) {
    e.printStackTrace();
} catch (RowsExceededException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (WriteException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}
</code></pre>

<p>}</p>
