diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-07-01 09:55:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-07-01 09:59:24 +0200 |
commit | cba65fe064e33dd3da2f70dd9d0b9ea62543b188 (patch) | |
tree | df3d890b096cadb3439fd40e0bc387e5eb245b0e /android/experimental | |
parent | b046b687f9caa71db29ce16e0d211d530648d141 (diff) |
android: Attempt to load the test file we have in the .apk.
Change-Id: Ib438e8d7de90c202a3be6ad01bd8b7a8341527c1
Diffstat (limited to 'android/experimental')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index 2345aea1f58b..cda333edfd5b 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -82,11 +82,11 @@ public class LibreOfficeMainActivity extends Activity { LibreOfficeKit.putenv("SAL_LOG=+WARN+INFO-INFO.legacy.osl"); LibreOfficeKit.init(this); - Log.w(LOGTAG, "LOK Handle:" + handle); Office office = new Office(LibreOfficeKit.getLibreOfficeKitHandle()); - File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); - String input = file.getPath() + "/test.odt"; + //File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); + //String input = file.getPath() + "/test.odt"; + String input = "/assets/test1.odt"; Document document = office.documentLoad(input); if (document == null) { Log.w(LOGTAG, "LOK Document error:" + office.getErrorNative()); |