path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2016-05-16Fix typosAndrea Gelmini1-1/+1
Change-Id: If7262e114b5b4cd40e9c0a8929940199ea747595 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <>
2016-05-01tdf#99539 - fıx crash on android 5.1Mert Tumer1-1/+3
Change-Id: I3d484f7d7d9e466ae1b2ac4afe2b59d060fa8b77 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Michael Meeks <> Tested-by: Michael Meeks <>
2016-04-30Fix typosAndrea Gelmini1-1/+1
Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Markus Mohrhard <>
2016-03-23no need for IPC on Android, removes the need for the cache-hackChristian Lohmaier1-16/+1
removing the cache on each launch prevented opening files via intents (i.e. from your mail application) unless the viewer was already running, as it also deleted the temporary file that was created from the intent. Change-Id: I0a4d9432f475e8434902ae11fc2b0c35fd25a71f
2016-03-19formatting and whitespaceAlexandru Moscu1-9/+9
Change-Id: Icc086404a2ef32a38e972da9158f6156fdf74ef2 Reviewed-on: Reviewed-by: Markus Mohrhard <> Tested-by: Markus Mohrhard <>
2016-02-08Fix typosAndrea Gelmini1-1/+1
Change-Id: I4586168d3af81f047a4ded59fc6d257f17554885 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <> Tested-by: jan iversen <>
2016-02-05android: document some parameters for doxygenChris Sherlock2-1/+5
Change-Id: I4382949a35df3877fc6c93a83d6e84cd892756a8
2016-02-02tdf#88389 - android document browser: external storage accessAlexF17-6/+1125
Background: External SD cards are only partially supported by the Android system, with a great deal of fragmentation on implementation across manufacturers and android versions. There is no official support for OTG devices. This commit adds: 1) External SD card support 2) OTG device support Caveats: 1) Not tested on Android 6. Emulator crashes when opening files on Android 6, using an unmodified build of the master branch. 2) OTG support currently works only if there is write access to the OTG directory. The user must be aware of exact OTG directory path or be able to navigate to it as well. 3) External SD card provider currently lacks file filtering. Approach: ----- Added new document providers. External SD cards: There are 2 different document providers external sd cards, one for Android 4.4 and above, and the other for older versions. 1) New Android 4.4 and above require usage of the DocumentFile wrapper class to access files in external storage. Actual file paths are no longer obtainable. As such, the underlying file will be cloned in a cache, allowing us to get an actual file path and use LOK. Some differences exist between 4.4 & 5+. The document provider handles each case separately. 2) Legacy Android 4.3 and below do not support the DocumentFile wrapper. File object can be used in these versions, allowing actual file paths to be obtained. The document provider guesses the root directory of the SD card. If the guessing fails, the user is to navigate to this directory himself. OTG: The OTG document provider resembles the legacy external SD card document provider, requiring the user to locate the directory himself. The document provider does not guess the root directory of the OTG device as the location varies with manufacturer implementation. ----- Supplementary Notes: Attempting to use the internal app cache as the file cache like in the ownCloud document provider did not work. Using the external app cache works fine though. It could be because initializing LOK wipes the internal app cache. Would be good to test the ownCloud document provider to confirm if it works. Change-Id: Ie727cca265107bc49ca7e7b57130470f7fc52e06 Reviewed-on: Reviewed-by: Tomaž Vajngerl <> Tested-by: Miklos Vajna <>
2016-01-29Bump build tools version to account for sdk updatesPeter Foley1-1/+1
Change-Id: Ibb15ac269ddfc61153d204079b070f7a5efbcbad Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Christian Lohmaier <> Tested-by: Christian Lohmaier <>
2016-01-21improve android build status reportingPeter Foley1-0/+1
Change-Id: I29f404dc5aee27b592eac7585c5142b91060fe5c Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <>
2016-01-10Fix typosAndrea Gelmini2-2/+2
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Ashod Nakashian <>
2016-01-05Fix typosAndrea Gelmini2-3/+3
Change-Id: I3fba2c76c83381eb398c80947ef4849bccf7ab27 Reviewed-on: Reviewed-by: Ashod Nakashian <> Tested-by: Ashod Nakashian <>
2016-01-04tdf#96127 Android: No UI visibleAlexF1-2/+1
Duplicate <include layout="@layout/toolbar"/> statement found. Problem could be caused by either 1) a differing xml reading mechanism across android versions 2) toolbar being accessed in a different way across android versions Duplicate element removed, and linearlayout shifted below first toolbar. Change-Id: I084b6498745bc72988f3a8eed12f7a72d261e267 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: jan iversen <>
2015-12-25tdf#88391 android document browser: draw and impress icon is the sameAlexF1-1/+3
Added missing code to set icon for draw in grid mode. Change-Id: I9ee356d5ab1a296a90e5ece11f5f4c50e7600f13 Reviewed-on: Reviewed-by: jan iversen <> Tested-by: jan iversen <> Tested-by: Jenkins <>
2015-11-23android: remove duplicated bitmapsMiklos Vajna3-0/+0
Change-Id: I5e16aa9da0aabe4302ebdd30b080b6bad4767006
2015-11-21android: another part where underline and strikethrough commands were swappedChristian Lohmaier1-2/+2
Change-Id: I8fdde4b46e3e315a5b6a35cabc4495ebf69db057
2015-11-21android: underline and strikethrough commands were swappedChristian Lohmaier1-2/+2
Change-Id: Id7157ea5fadd684dceec52f69ec9279c4107b5f1
2015-11-17android: don't crash on empty filelistCaolán McNamara1-0/+2
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e
2015-11-13android: Fixes to AndroidManifestTomaž Vajngerl1-2/+3
Change-Id: I661b3de74066831f22757b587e8b367913030573
2015-11-13android: add source of icons to READMETomaž Vajngerl1-0/+9
Change-Id: Iad3ad138a9a7164d10ab6e51e22032ad115d08a5
2015-11-13android: don't set text color in about dialogTomaž Vajngerl1-4/+0
Change-Id: Iea5df81bb2f85376dc67e1cca63d5586a834e1b0
2015-11-13android: remove old unused action buttons (bold, italic,...)Tomaž Vajngerl16-0/+0
Change-Id: I68d87af8ec2662208776d3b202d412145c86d9b2
2015-11-13android: rename "editMode" to "experimentalMode"Tomaž Vajngerl1-5/+5
Change-Id: I3fcb7bb2fda925a1c5b2633ac7f6846fda0dabf8
2015-11-13android: add undo/redo to the main toolbarTomaž Vajngerl7-0/+31
Change-Id: I64f76d22018fcd8af2991933ba5ab2069f84181f
2015-11-13android: Add string searching + search toolbarTomaž Vajngerl15-0/+185
LOKit supports searching, but this was not implemented yet in the Android GUI. This adds a bottom search toolbar where you can type a search string + up/down search handles to search for the string from the current cursor position. Change-Id: Ia7461d2c6399c23201d2ea81f0b44c38533939a1
2015-11-13android: Add bottom formatting toolbarTomaž Vajngerl42-193/+819
The bottom formatting toolbar now shows the formatting options previously located in the main toolbar as a menu entry (bold, italic, ...). In addition alignment options and selection of fonts and sizes have been added. Bottom formatting toolbar is not shown by default - it enables when hitting the icon in main toolbar. Also soft keyboard and formatting toolbar should not be shown at the same time. Change-Id: I5f6cf8a9fcbdb4d154ae7504a65f9a226c99d694
2015-11-13android: make toolbar visuals easier to changeTomaž Vajngerl3-1/+13
Change-Id: I5b4dd8b8c407640cfcd9f366cecfaf6deb0cb3be
2015-11-13android: remove attrs.xmlTomaž Vajngerl1-17/+0
Change-Id: I7d3742af0c11a996701f7d263fc04a387edb0d00
2015-11-13LOK: setClientZoom() - sets the client zoom levelMihai Varga5-13/+21
We need to know the client's view level to correctly handle the mouse events in calc. PaintTile() set a zoom level that corresponds to the requested tiles and previously postMouseEvent would call SetZoom(1,1). Now we can make use of knowing the client's view level and call SetZoom() with the correct parameters Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd Conflicts: sc/source/ui/unoobj/docuno.cxx
2015-11-10lokdocview: assert that loading of handle bitmaps succeededMiklos Vajna3-0/+0
A number of such bitmaps were removed by accident in commit 74463457b39c9def1add630b7b0581dc195549c8 (android: chanhe handles to use alias, tint handles with color, 2015-11-01). Change-Id: I253c4b5790e82de32e6fd06896645adf360fa586
2015-11-02android: chanhe handles to use alias, tint handles with colorTomaž Vajngerl18-31/+21
Change-Id: I86ad5eefd70bc8b768780cac66ca466aa0926dc4
2015-11-02andorid: use 4 spaces for indent in color.xmlTomaž Vajngerl1-87/+87
Change-Id: I2435e8ce93383a1a40996a81ef65c1823606609a
2015-11-01android: don't crash in LO when SurfaceView layout is 0 widthTomaž Vajngerl1-0/+5
Change-Id: I49be19b273d0c263637369e9b095f374b345191b
2015-11-01android: don't crash in TextureReaper when Integer is nullTomaž Vajngerl1-7/+16
Change-Id: I1514aa7a3fbab682b0d282ba0f504470943d7e4a
2015-11-01android: update JNI facade, rename mouse/keyboard event flagsTomaž Vajngerl7-27/+70
Change-Id: Ia2b9a812717d05c7d98d47bf0fe5fd293029d045
2015-11-01android: add desing libraryTomaž Vajngerl1-0/+1
Change-Id: I6468a5cf66715516764c779ecc080fb2c1bd7382
2015-11-01android: remove as we don't use it anymoreTomaž Vajngerl1-176/+0
Change-Id: Ib487d4f948dde2027bebc914bb3fe43b55c6d50b
2015-10-21android: remove MockTileProviderTomaž Vajngerl2-170/+2
Change-Id: I1b44c9fa4edfdc79e48f52ba95493f83f0421669
2015-10-21android: remove the native DirectBufferAllocatorTomaž Vajngerl1-46/+5
Change-Id: I41d25d288253f1b35c268ba70b8384812fa567e5
2015-10-21android: typo in gradle build script (app crashed on key press)Tomaž Vajngerl1-2/+2
Change-Id: Icf3973d20455fd9ccde3a448b9596457ef5308a3
2015-10-15android: show flat ODS files in the doc browserMiklos Vajna1-1/+1
I forgot about this when I enabled other Calc file types in 07997cba7745997d7e2ed908a8764ba1f0777f1e (android: adapt doc browser to updated manifest that accepts Calc documents, 2015-01-19). Change-Id: Iabacffbfc09d806f09bc7e0f9307830bda8ebbe1
2015-10-14allow using Android Studio with lldb to debug native partChristian Lohmaier2-8/+32
and of course also for the Java part Using build-id linker flag allows lldb to map the installed .so to the non-stripped version on the buildhost. Also ndk-gdb supports specifying a different package name on the commandline, so no need for the error in configure anymore. Change-Id: If6887a27cc8ab15ee6ab612502cacf0a22ade737
2015-10-14make ndk-gdb work againChristian Lohmaier5-15/+47
it hardcodes so much :-( Change-Id: Id86c2bcbf5936f3ab292e87210b967e2331c9435
2015-10-12android can only target sdk 22 - openssl triggers text relocation errorsChristian Lohmaier1-1/+4
scanelf -T android/source/obj/local/x86/ TYPE TEXTRELS FILE (memory/data?) [0x30E35B6] in (optimized out: previous OPENSSL_rdtsc) [0x30E35B0] (memory/data?) [0x30E35D2] in (optimized out: previous OPENSSL_instrument_halt) [0x30E35D0] (memory/data?) [0x30E3646] in (optimized out: previous OPENSSL_wipe_cpu) [0x30E3640] (memory/data?) [0x30E494C] in (optimized out: previous sha1_block_data_order) [0x30E4940] (memory/data?) [0x30E79BA] in (optimized out: previous sha512_block_data_order) [0x30E7980] (memory/data?) [0x30EB7B2] in (optimized out: previous AES_encrypt) [0x30EB780] (memory/data?) [0x30ECDF2] in (optimized out: previous AES_decrypt) [0x30ECDC0] (memory/data?) [0x30ECE89] in (optimized out: previous AES_cbc_encrypt) [0x30ECE70] ET_DYN android/source/obj/local/x86/ with target level 22 it is only a warning: W/linker: /mnt/asec/org.documentfoundation.libreoffice-1/lib/x86/ has text relocations. This is wasting memory and prevents security hardening. Please fix. with target level 23 it is java.lang.UnsatisfiedLinkError Change-Id: Ia55c75c46a64854e46aab3329fef3e9b522a5ba2
2015-10-11tdf#94891 fix crash when rotating screen in docbrowser right after launchChristian Lohmaier1-3/+10
will likely also lose the current directory, but much better than crashing. Change-Id: I9ce20e1954a6f58325413046e258ded75b6c8848
2015-10-11move extracting assets to Java & use AssetManager to access assetsChristian Lohmaier2-35/+112
using AssetsManager in both java as well as native parts allows to handle files both with and without compression transparently Change-Id: If02f1159c498be7ea965fd9c217410722f2dca1f
2015-10-11migrate android build to gradleChristian Lohmaier24-657/+599
move preparation tasks (creating assets/processing files) from the makefile into the gradle script This allows much easier integration into android-studio (just open android/source with android studio after running make to compile the native library) Change-Id: I9a9d6832797c24a7e195a1c7954cd6d20f5a8496
2015-10-03tdf#93281 clean cache directory on each startChristian Lohmaier1-10/+35
to avoid segfault in native lib. It's only a workaround, but I couldn't see what's wrong with the cache... Change-Id: Iceeee1e190bbbd6efe336d84ddcbd8c4d3a1c621
2015-10-03android: avoid arrayIndexOutOfBounds when lokit payload doesn't have a valueChristian Lohmaier1-0/+4
and is not handled yet like ".uno:CharFontName=" Change-Id: I09d17b6be9ce9b9c9ae6883f8222c8628268815d
2015-10-03android: make strikethrough work (it's not .uno:StrikeOut, but .uno:Strikeout)Christian Lohmaier2-2/+2
Change-Id: I8d629272cf94eaac406c163c06c9bbdd6a248b79