0

I want to open an ods file from my sdcard. The file-object returns "file exists".

My whole testsnippet is

final String fileName = Environment.getExternalStorageDirectory() + "/file.ods";
final File file = new File(fileName);
final SpreadSheet spreadSheet = SpreadSheet.createFromFile(file);

The last line throws a java.lang.ExceptionInInitilializerError at org.jdocument.dom.ODPackage$1.processEntry.

Is this because of a small XML library in Android?

PS: I used the jOpenDocument-1.2.jar as external library.

PPS: My ODS-file was created by Google Drive.

mars3142
  • 2,501
  • 4
  • 28
  • 58

0 Answers0