summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
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/liblo-native-code.so TYPE TEXTRELS FILE liblo-native-code.so: (memory/data?) [0x30E35B6] in (optimized out: previous OPENSSL_rdtsc) [0x30E35B0] liblo-native-code.so: (memory/data?) [0x30E35D2] in (optimized out: previous OPENSSL_instrument_halt) [0x30E35D0] liblo-native-code.so: (memory/data?) [0x30E3646] in (optimized out: previous OPENSSL_wipe_cpu) [0x30E3640] liblo-native-code.so: (memory/data?) [0x30E494C] in (optimized out: previous sha1_block_data_order) [0x30E4940] liblo-native-code.so: (memory/data?) [0x30E79BA] in (optimized out: previous sha512_block_data_order) [0x30E7980] liblo-native-code.so: (memory/data?) [0x30EB7B2] in (optimized out: previous AES_encrypt) [0x30EB780] liblo-native-code.so: (memory/data?) [0x30ECDF2] in (optimized out: previous AES_decrypt) [0x30ECDC0] liblo-native-code.so: (memory/data?) [0x30ECE89] in (optimized out: previous AES_cbc_encrypt) [0x30ECE70] ET_DYN android/source/obj/local/x86/liblo-native-code.so with target level 22 it is only a warning: W/linker: /mnt/asec/org.documentfoundation.libreoffice-1/lib/x86/liblo-native-code.so 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
2015-10-03compare strings using equals, not with ==Christian Lohmaier1-2/+2
Change-Id: I8869980198123bbe9e86e12638e3316be24588c3
2015-10-03android: remove unused imports, call static methods the static wayChristian Lohmaier19-56/+25
and remove some redundant casts Change-Id: If58a395227e4b9d54b0d757032d4a55c25315019
2015-10-03android: make layouts nicer to work with by providing sample values in editorChristian Lohmaier6-9/+24
Change-Id: I76495becb0257cb36340397d7296f26565fca4cd
2015-10-03android: remove no longer used filesChristian Lohmaier15-227/+4
Change-Id: Id3b71ac50e3c8ce9705f6df18edaaaa6ba8ad3fd
2015-10-01android: fix make install and don't use ant -quiet by defaultMiklos Vajna2-2/+2
Unlike 'make -s', 'ant -quiet' will stay silent even if there was an error. Change-Id: Iba921d3cde48875f7a6da4c5ba811cab46dfb89f
2015-09-30Fix typosAndrea Gelmini2-4/+4
Change-Id: Ie0e941d48457d758525353d6c5cf858652f86fd3 Reviewed-on: https://gerrit.libreoffice.org/18938 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-28Revert "revert back to android-21 target until tinderbox gets updated"Tor Lillqvist3-3/+3
Now it has been updated. This reverts commit 4e47ed7e5aad8bde548b4953baba13cf99b6fd9c.
2015-09-25revert back to android-21 target until tinderbox gets updatedChristian Lohmaier3-3/+3
Change-Id: Ief38ef9cc4f167caef8d991c9543161997682418
2015-09-24android.util.FloatMath is deprecated/was removed in ver 23Christian Lohmaier5-12/+10
replace with corresponding Math functions and bump android sdk target to 23 to be able to use current appcompat-v7 pre-JIT FloatMath was faster, but since then was wrapper to Math anyway http://developer.android.com/reference/android/util/FloatMath.html Change-Id: I19e316fb7d32e616162a70fca8c565fa320a8c1a
2015-09-18Fix typosAndrea Gelmini2-3/+3
Change-Id: I021589aeca9ef6bceb1c828c2197f5ff58f85b09 Reviewed-on: https://gerrit.libreoffice.org/18707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-09-11Android: i18-ize some stringsJacobo Aragunde Pérez2-4/+9
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
2015-09-11Android: check file modify date to know if save is completeJacobo Aragunde Pérez1-7/+33
The API does not allow to set a callback for the save operation, we work this limitation around by checking the modification date of the local file periodically. When that date changes, we are sure the local save operation is complete and we can invoke the document provider save operation to push the changes to the cloud, if necessary. Users may press "save" on a document with no changes, in this case we have set a 20 seconds limit to stop checking the modification date. We also add a "save complete" message for the user. Change-Id: Ib8871fac682a5c03a187a7238e11874984143527
2015-09-11Android: Implement cloud saveJacobo Aragunde Pérez5-8/+107
The LOMainActivity now needs to be aware of Document Providers, so we pass the providerId and documentUri in the Intent so it can rebuild the DocumentProvider and the IFile objects. We also implement the ownCloud save operation. TODO: since the local save operation does not have a callback, we do not know when the cloud save operation should be performed. Now we just wait 5 seconds to trigger it. Change-Id: I060969e12888eca07c8c56ddc82cbed6c45a0739
2015-09-11Android: provide an ID to document providersJacobo Aragunde Pérez5-9/+44
This ID will be useful to get an instance of a document provider back from a different activity. Change-Id: I9419ea23d51f8e9ffd70252bd8e367cf51bde1ad
2015-08-11gbuild/config stop using VERBOSE, use only verbose=tNorbert Thiebaud2-3/+3
configure.ac was setting VERBOSE=YES/NO when really we use verbose=t or verbose= Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299 Reviewed-on: https://gerrit.libreoffice.org/17634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-07-04Fix typosAndrea Gelmini1-1/+1
Change-Id: I75b4ad61785bf0ba1cb07735d938c0977356b8cc Reviewed-on: https://gerrit.libreoffice.org/16705 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-06-15java: 'final static' to 'static final'Noel Grandin1-1/+1
this is the canonical order, and it makes the code easier to read Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470 Reviewed-on: https://gerrit.libreoffice.org/16242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-06-12Android: show drawer ("hamburger") icon on root directoryJacobo Aragunde Pérez2-3/+42
When browsing the root directory, the application home button (on the top left corner) becomes a drawer icon. When not in the root dir, the icon is an arrow as usual. This will increase the visibility of the document providers feature. Also, modified the behavior of the system back key to close the drawer in case it is open. Change-Id: Id0ce932907bcec4b8601029482eda0c1c1f0df35 Reviewed-on: https://gerrit.libreoffice.org/16246 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12Android: do not hide toolbar under the drawerJacobo Aragunde Pérez1-20/+27
Change-Id: I329b1e5eb63c023a488c72137d9775f1f19b9e3d Reviewed-on: https://gerrit.libreoffice.org/16247 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12tdf#87434: android: system back key to go one level upJacobo Aragunde Pérez2-0/+28
Added an additional check so back has to be pressed twice on the root folder to actually leave the application. It's a check seen in many other apps. Change-Id: I26827113a41070aa8188fa616ba8fe53742329b3 Reviewed-on: https://gerrit.libreoffice.org/16245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12Android: properly set default dir for the document browserJacobo Aragunde Pérez2-2/+3
The default dir had been changing by modifying the "local documents" provider; this is wrong because there is already a document provider to browser de internal storage. Change-Id: I08677283100162aaeced622153131f89abc2f1af Reviewed-on: https://gerrit.libreoffice.org/16244 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-11java:regulatize the order of 'final' and public/privateNoel Grandin1-1/+1
Make the order be 'public static' or 'private static' Just makes the code nicer to read. Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2 Reviewed-on: https://gerrit.libreoffice.org/16202 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-10Android: improve error handling in ownCloud provider.Jacobo Aragunde Pérez3-5/+34
This provider now throws exceptions with properly internationalized messages to be shown to the user. Change-Id: I0464bffe14cab24d50180cb5e2e62ce746bcba74 Reviewed-on: https://gerrit.libreoffice.org/16197 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: document providers listen to changes in preferences.Jacobo Aragunde Pérez3-6/+77
With this patch, document providers are able to listen to changes in their preferences and update their internal state accordingly. Now ownCloud provider can see its server updated without restarting the application. Change-Id: I833c7ec9fc97be58bdc8ac2cbf4384a33c2b400e Reviewed-on: https://gerrit.libreoffice.org/16196 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: add menu entry for document provider settingsJacobo Aragunde Pérez2-0/+7
Change-Id: Ic48275fe2e7d83fd5e77171f4f5740a527dec7e2 Reviewed-on: https://gerrit.libreoffice.org/16195 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: setup ownCloud provider with user-defined settingsJacobo Aragunde Pérez2-4/+20
Change-Id: I4ad4dd12854ca9f332055a50131959f60f7da504 Reviewed-on: https://gerrit.libreoffice.org/16194 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: settings activity for document providersJacobo Aragunde Pérez5-0/+82
Creates an activity to manage the settings of any document provider that needs them, and populated it with the settings required by the ownCloud implementation. The settings screen is not yet plugged to the document browser UI but can be launched with this command: adb shell am start -a android.intent.action.MAIN \ -n org.libreoffice/.storage.DocumentProviderSettingsActivity Change-Id: I83cff641fa61078f2bddbb98262af989c06985a9 Reviewed-on: https://gerrit.libreoffice.org/16193 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: download documents from ownCloud.Jacobo Aragunde Pérez2-2/+41
Documents are downloaded to the private cache directory of the app, and opened from there. That directory is cleared and created again every time the application starts up. Change-Id: I5c05c8ae750b6ced3b419c67d84063e8ee3d84aa Reviewed-on: https://gerrit.libreoffice.org/16192 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: initial implementation of ownCloud provider.Jacobo Aragunde Pérez5-2/+199
This implementation can connect to a local server and browser its contents, but cannot download and open the documents yet. TODO: * Download and open documents. * UI to configure server, user and password. * Implement filtering to show only the documents of the desired type. * Improve error handling. Change-Id: I54a2e2e1d3e8ec8d824d75639e176ca452551f3e Reviewed-on: https://gerrit.libreoffice.org/16191 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: add ownCloud library to the build.Jacobo Aragunde Pérez1-0/+2
Library code from https://github.com/jaragunde/owncloud-android-library This patch downloads, builds and installs the library from a tarball uploaded to http://dev-www.libreoffice.org/src/. Change-Id: I28afaea4dabe2dab869b53b1881f4d5a6522943f Reviewed-on: https://gerrit.libreoffice.org/16190 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-05-21lokdocview: adapt Android pathMiklos Vajna2-5/+5
Change-Id: I786fd580b3d08fa076eeb2bf90bd23b09c9f8182
2015-05-21android: leftover gitignoreMiklos Vajna1-2/+0
Change-Id: I45a709d805e8706a2f186fd44b4f467d173bc61e
2015-05-21Let's simplify the paths and be less 'experimental'Tor Lillqvist175-9/+9
2015-05-21Bin the 'DocumentLoader' Android test appTor Lillqvist22-3437/+0
It is the wrong approach, from the time before tiled rendering, and has not been built for a long time.
2015-05-21Remove more obsolete Android code: The 'AppSupport' stuffTor Lillqvist1-31/+0
2015-05-21Bin the since long obsolete "desktop" Android appTor Lillqvist11-807/+0
It was an early approach, indeed experimental, and has been abandoned for quite a while.
2015-05-11editing/experimental mode as user-preference (Android Viewer)Christian Lohmaier10-56/+156
also exposes the other preferences (default document filter, default sorting) in a default settings dialog Change-Id: I7a4080f70f5727bfb2fabe8d8f57cb5b8337481f Reviewed-on: https://gerrit.libreoffice.org/15638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-05-03android: optipng the images.Jan Holesovsky22-0/+0
Change-Id: Iac510a12dcca59209af75ea8d77f9290025c5c03
2015-05-03android: Plain .component files are not used from what I know.Jan Holesovsky1-2/+1
Change-Id: I6e70dd44430a7b0e61c7618e3f0da42deadcd43d
2015-04-30fix theme with AppCompat 22.1 or laterChristian Lohmaier1-2/+1
AppCompat 22.1 is stricter in regards to what flags it it accepts Change-Id: If9b77e59604147cb7050b5721380ab213fcdb9a6 Reviewed-on: https://gerrit.libreoffice.org/15571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>