path: root/sal/android/libreofficekit-jni.c
AgeCommit message (Collapse)AuthorFilesLines
2019-06-19android: Fix type of a C string to be const char[].cp-android-19Jan Holesovsky1-4/+6
With the wrong type, we were measusing the sizeof() wrongly, leading to a hard to catch crash at start that appeared only from time to time. Improve the concatenation too when at that. Change-Id: I4a4ab2909124281aac99118d66c62d669294d5f7 Reviewed-on: Reviewed-by: Michael Meeks <> Tested-by: Michael Meeks <>
2019-06-05android: Make the tiled rendering from the loolwsd actually work.Jan Holesovsky1-0/+6
Not to break the 'old' Android app, introduce a bool that can indicate if we are using the LOK from the 'old' (LOK-via-JNI-based) or from the 'new' (loolwsd-based) app. Change-Id: I38bd665cc1d5bc88018574171443ecabc46763df Reviewed-on: Reviewed-by: Jan Holesovsky <> Tested-by: Jan Holesovsky <>
2019-06-05sal, android: fix -Werror,-Wreturn-typeMiklos Vajna1-0/+2
Change-Id: Ic37967dedb2378106db2f3f437781c8ad20cad56
2019-06-05android: Set the FONTCONFIG_FILE envvar to the fonts.conf (if exists).Jan Holesovsky1-0/+15
Change-Id: Ic9fd97a2ff8a6d96ffcc7ad300ef30201d786528 Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan Holesovsky <>
2019-06-05android: Separate the Android-specific setup from the actual LOK init.Jan Holesovsky1-8/+21
Change-Id: I433376dfea0a43c63827ba15308a614f3466fb71 Reviewed-on: Tested-by: Jenkins Reviewed-by: Jan Holesovsky <>
2019-06-05sal android: fix -Werror,-Wimplicit-function-declarationMiklos Vajna1-0/+1
Change-Id: If19dbb654d473e8785dc69f96775c78cc95a7bd6
2015-10-11move extracting assets to Java & use AssetManager to access assetsChristian Lohmaier1-5/+14
using AssetsManager in both java as well as native parts allows to handle files both with and without compression transparently Change-Id: If02f1159c498be7ea965fd9c217410722f2dca1f
2014-12-04android: use ByteBuffer to send or store pointers in JNI bindingsTomaž Vajngerl1-2/+6
Using direct ByteBuffer is much nicer option to store or send pointers between C(++) code and Java via JNI as it handles endiness and pointer size for us. Using "long" type can have unexpected results in 32-bit architectures (mostly Android). This was causing grief especially when Android introduced support for 64-bit architectures starting with SDK 19. Change-Id: Ie92d0f913b668e1724e846d70d1820445d9cb086
2014-12-04Don't keep the LibreOfficeKit pointer in a global variableTor Lillqvist1-7/+4
It is invalid in case lo_destroy() has been called. Change-Id: I45533b66d32fc650e48748da8ea1d2f2aaa381e0
2014-07-01android: LibreOfficeKit needs the path to program/ as the starting point.Jan Holesovsky1-1/+14
Change-Id: I7d4534649361e1bfa2c285e67e6765a4be55ec69
2014-07-01lok bootstrap: nicer function names, clean-upTomaž Vajngerl1-21/+24
+ prevent lokandroid JNI functions to be removed from the library + basic use of lok Office / Document in LibreOfficeMainActivity Change-Id: I7bfe53738cf821b2270ab3e024cc506a7cff42f0
2014-06-30android: Make the extract_files() part of setup / init.Jan Holesovsky1-10/+5
We need to have the files extracted before we attempt to initialize LibreOfficeKit (call libreofficekit_hook), otherwise the .rdb's are not there. Change-Id: Ib49db7e945a709d18a063eb488a27df18fef542b
2014-06-30android: Make use of LibreOfficeKit.Jan Holesovsky1-4/+25
Now the LibreOfficeKit is used to actually attempt to bootstrap LibreOffice; at the moment fails to do that. Change-Id: I91220dbff783213bf7702e7213a5646859db4581
2014-06-30android: Introduce to bootstrap using LibreOfficeKit.Jan Holesovsky1-0/+130
Change-Id: I5e1758c15684b06ab6809f62f4da6d5f50c071a9