kaishu-sahu
1797ca4b45
android: fix ArrayIndexOutOfBounds on selecting 'Drawings' in DefaultFileFilter setting
...
Change-Id: I5ed924d9d79db169b11a0561b89da9b57eb078d9
Reviewed-on: https://gerrit.libreoffice.org/66971
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-16 09:23:15 +02:00
kaishu-sahu
3f896d749f
android: Setting default values to setting preference, minor ux improvements
...
Change-Id: I356871429f2e26d9d34e0e1428334a4d2287b683
Reviewed-on: https://gerrit.libreoffice.org/67295
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-16 09:23:14 +02:00
Jan Holesovsky
264b6e941e
android: Cleanup unused resources.
...
Change-Id: Ic1003da521d9496ee46ccbd72dd1935caa5e53c1
2019-04-16 09:11:30 +02:00
Florin Ciornei
7705d5893d
android: Port Settings from the old app
...
Change-Id: I283040c518f9a7deb3bd302bc9ed2d11ac560775
Reviewed-on: https://gerrit.libreoffice.org/70790
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-16 08:52:48 +02:00
kaishu-sahu
97d659d480
android: Update handling of the storage permission.
...
If the user does these steps: install -> open a document(from app's file manager) -> close the app -> remove storage permission
-> open the document from the launcher shortcuts, he/she gets an error(from loolwsd).Expected behaviour should be to ask for
storage permission. Same behaviour can be observed if the user tries to open the document via file uri provided by 3rd party
file managers on api < 24.
Change-Id: Idfc3d55a81ccd269a2251aef57935eff2569ea94
Reviewed-on: https://gerrit.libreoffice.org/70759
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-15 11:18:11 +02:00
Jan Holesovsky
6746ef981d
android: Allow setting of the app name via --with-app-name too.
...
Change-Id: I8c8da8b4872724daf72841f2bf36fdff9ac53df6
2019-04-12 18:06:16 +02:00
kaishu-sahu
1385f11f6e
android: add launcher shortcuts support for api > 24
...
Change-Id: Iac166e2d659ac02c204fa80957a95dd80456d0a5
Reviewed-on: https://gerrit.libreoffice.org/70613
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-12 10:33:35 +02:00
kaishu-sahu
caeda968b3
android: convert the remaining explicit intents to implicit intents.
...
Change-Id: I0d9ff0a9726f751041d8ee6bdf3c1cd90e95baf4
Reviewed-on: https://gerrit.libreoffice.org/70604
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-12 10:31:39 +02:00
kaishu-sahu
c74a47bc7e
android: add view document from other file-managers functionality.
...
Change-Id: I2325110a18c0acd93ec235e1a2e0dcc55affa6f5
Reviewed-on: https://gerrit.libreoffice.org/70025
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-10 18:00:20 +02:00
Jan Holesovsky
75949f6fd2
android: How to debug the native code with symbols.
...
Also no need to avoid stripping any more, the symbols are not necessary
inside the .apk.
Change-Id: I4d9f4c3db26c3d61af3cc5167589fcc82834d7f9
Reviewed-on: https://gerrit.libreoffice.org/70516
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-10 17:49:06 +02:00
kaishu-sahu
8ff2ac2142
android: add ownCloud support from old app.
...
Change-Id: I11f38bc7b35d2c7d9cc8a718232eac2efe13388f
Reviewed-on: https://gerrit.libreoffice.org/70084
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-08 18:45:30 +02:00
kaishu-sahu
789a1c1a7b
android: add no_recent_items/no_items msg.
...
Change-Id: I398c65702d246772aeb46b68ba54d2800ce8200a
Reviewed-on: https://gerrit.libreoffice.org/70014
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-04-08 12:51:17 +02:00
Jan Holesovsky
f59e7a3740
android: Use the stripped liblo-native-code.so for the .apk.
...
Change-Id: If0b5fd34d8a834a7297b4a92aaa782876345cfc4
2019-04-05 18:16:58 +02:00
Jan Holesovsky
46bdafb15f
Cosmetics - add some spaces.
...
Change-Id: I18124265439a364ccdf6715b10fc8f2f2701ac5c
2019-04-01 12:28:17 +02:00
Florin Ciornei
b02cb37c72
android: Remove LOKitShell.java and refactor code
...
LOKitShell class is not needed anymore in the new app.
Change-Id: If9974f99e33d62102ae2290a2ed8847ee784a4c7
2019-04-01 12:22:39 +02:00
Florin Ciornei
84df937731
android: Display license and notice as html in a separate activity
...
In order to prevent starting LOOLWSD instance only for displaying license
or notice, these will be displayed as html in a separate activity inside a
webview.
Change-Id: I1d5817fa959abc69276ed717e962bea6291a85a8
2019-04-01 12:22:39 +02:00
Florin Ciornei
a21808f407
android: Add open document functionality to the document browser
...
To investigate: sometimes the MainActivity that displays the document
crashes.
Change-Id: I0f49e4449bfd8d5123153f04c4316d20d6e7ef22
2019-04-01 12:22:39 +02:00
Florin Ciornei
3bcd9ba2a6
android: Display notification when creating file if such a file already exists
...
Change-Id: I2901e499135903d2649ee8ee62f144fc10a17a05
2019-03-27 14:48:58 +01:00
Florin Ciornei
8878567369
android: Add create document option
...
Activity should be restarted to see the newly created documents
Change-Id: I57113ca92e99dc58301d3cddae165f4edfdddcc1
2019-03-27 14:35:23 +01:00
Florin Ciornei
16e45aef60
android: Create FAB button now appears in the document browser.
...
Still have to implement the creations of the documents.
Change-Id: Icf1864b7d748636c6a3a0dec0eeb940d1fbcd8cc
2019-03-27 14:35:23 +01:00
Florin Ciornei
89d920d682
android: Port document browser from the old Java app to the new one.
...
Edit FAB still doesn't work, and the opencloud document browser should be
implemented
Change-Id: I788bf271b543e397cb156b970116614e73f1ad95
2019-03-27 14:35:21 +01:00
Jan Holesovsky
ecc3ee445e
android: Copy some files from the old Android app.
...
This is a snapshot from core.git at the time of commit
9852f09b467e3c7f8058b931010b91f447905051.
Change-Id: Ifdd752c0c3d11b25ee7250e37f61959b0ea05c9a
2019-03-27 14:31:44 +01:00
kaishu-sahu
0346ec81ab
fix order of elements in 'AndroidManifest.xml' as per guidelines and icon of the android app wasn't reflecting in the launcher
...
Change-Id: I795f0d63fc352f990215691051fe83a8215c04a4
Reviewed-on: https://gerrit.libreoffice.org/67989
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-02-24 13:48:53 +01:00
Jan Holesovsky
63b1853cd2
android: Add possibility to debug JS in the WebView using a debugger.
...
Change-Id: I3d14dce55c7c94a151e72b631925419b4c313297
2019-02-22 14:02:00 +01:00
Jan Holesovsky
354c2ce2a3
android: Fix passing of the base64-encoded messages.
...
Change-Id: I8519bff3ec96d7a2acf25ef4b5258b5493befd4f
2019-02-20 00:38:16 +01:00
Jan Holesovsky
4f5e262344
Revert "android: Various fixes to make the sending from the core to JS..."
...
Lets leave this optimization for later, this is incomplete, and does not
fix the problem which it was originally supposed to address.
This reverts commit bce922e8fd
.
Change-Id: I5d2ee19058261c7612d36014181f509604c8acde
2019-02-20 00:38:16 +01:00
Jan Holesovsky
bce922e8fd
android: Various fixes to make the sending from the core to JS working.
...
Change-Id: Idc22ccbae1effac9e2db5293703a768e033fd7e9
2019-02-19 10:56:58 +01:00
Jan Holesovsky
a3226c108c
android: Don't split the base64 encoded string to separate lines.
...
Change-Id: Ie307f123bd2eec708adff581481d12babd1867ec
2019-02-19 10:56:58 +01:00
Jan Holesovsky
a9fc9ee63a
android: Cannot read the assets directly, use the unpack instead.
...
Change-Id: I89818b122757b0f77a71c68e67cb2a1a27f2c0fb
2019-02-19 10:56:58 +01:00
Jan Holesovsky
91280ea905
android: Need the the JavaVM in LibreOfficeKit too.
...
Change-Id: Ice4a25be0e6eb8a2aa8e571bd22847e5fda1e8a2
2019-02-19 10:56:58 +01:00
Jan Holesovsky
8cd64c8cd8
android: Make sending to JavaScript work.
...
I haven't tested yet if the message actually gets to the JS, but
definitely the callFakeWebsocketOnMessage() is called and the WebView
does not complain that it is called from another thread.
Change-Id: I0e32d5a7d8937d754ac9dc6aa4ef763b56b44a52
2019-02-16 01:51:54 +01:00
Jan Holesovsky
40ffc4306a
android: Passing messages from the native code to JS (incomplete).
...
Later we can come up with a way how to call it directly, but for the
moment, the indirection through Java is the easiest to implement.
Incomplete, needs a bit of more work to work from the thread.
Change-Id: I85ec997e32b5bd7d809142307e6fbaf42fc6ec2d
2019-02-15 18:45:18 +01:00
Gülşah Köse
5a3a90c5ec
Remove unnecessary button from ui and make webview fullscreen.
...
Change-Id: Ia07dc38b9394b0ae174ec112d828b858990488c3
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/67815
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-02-15 17:48:14 +01:00
Gülşah Köse
62e2d47921
Associate files with the android application.
...
Change-Id: I9a654ea1cac8523b9422e5c183a5127244efb25f
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/67817
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-02-15 17:47:06 +01:00
Jan Holesovsky
427c5ea219
android: Settings for the build.gradle.
...
Change-Id: I457a7fb8a80106c0474ee03229e712a557cf799b
2019-02-15 16:53:35 +01:00
Jan Holesovsky
a362bdec09
android: Some pieces have to be unpacked out of the APK.
...
Mostly copied from the core.git.
Change-Id: I87472037c48d69a904440fd8008b515d604bb84b
2019-02-15 16:53:35 +01:00
Jan Holesovsky
df3faf45ae
android: Better path for the fonts.conf.
...
Change-Id: Iaecbec1b24dd4806da3f52e8eb3e1eddd64891b3
2019-02-15 16:53:35 +01:00
Jan Holesovsky
4480a32577
android: Actually use /assets as the dataDir.
...
Change-Id: I00a6263644effc6bf20a46c90d811e6fa0cf1e09
2019-02-15 16:53:35 +01:00
Jan Holesovsky
2d7bb54826
android: Add / generarate various bootstrap-related files into the APK.
...
Mostly taken from core.git.
Change-Id: Idb7c7078cb78b257b04737daa00cf210cbe2cf87
2019-02-15 16:53:35 +01:00
Jan Holesovsky
a25b256282
android: Package the lo-native-code.so and dependencies into the APK.
...
Additionally don't strip the debugging symbols when building a debug APK
for easier debugging in the Android Studio.
Change-Id: I522a91da511a2868a2a07d80b4a25fea0dbd2621
2019-02-15 16:53:35 +01:00
Jan Holesovsky
a98d08fbb3
android: Copy the liblo-native-code.so over from core.git.
...
Change-Id: I457a7fb8a80106c0474ee03229e712a557cf799b
2019-02-15 16:53:35 +01:00
Jan Holesovsky
835bb3db35
android: Perform the android-specific setup before initializing the LOK.
...
Change-Id: I935e6849dd41c5e66b768c7f2a79c139265c901f
2019-02-15 16:53:35 +01:00
Jan Holesovsky
95827f3c1c
android: Actually attempt to load the file for real.
...
Hits an assert, no LOK is available.
Change-Id: I86b46ea2fcee41966f46ae7f54fe5a506aa7769a
2019-02-13 21:52:43 +01:00
Jan Holesovsky
7604f9b218
android: Pass the messages from JS to the MainActivity.
...
Change-Id: Id2d5bac0f67668305ed47276614fde590d461901
2019-02-13 21:18:57 +01:00
Jan Holesovsky
e3b17cdc3c
android: Don't try to read discovery.xml, it's not needed on mobile.
...
With this, the actual loolwsd startup does not crash any more, so let's
enable it :-) Of course it still does not work yet.
Change-Id: I5a1ee7adac64c57f1aa5b597c3dbdc0089a1ac11
2019-02-13 17:36:19 +01:00
Jan Holesovsky
7a0209c7aa
android: Link against the debug POCO libraries if --enable-debug.
...
Change-Id: Ic7dc3076a12fe9a0faf4dec5c0f5b0b3a5a171c3
2019-02-13 17:28:01 +01:00
Jan Holesovsky
7f0f6e5a36
android: Restart if anything goes wrong.
...
But sleep for a bit of time between the runs to avoid a busy loop.
Change-Id: I90a7bee052d82e8a0488e6a34fb1b6f43e6f6e64
2019-02-13 16:37:54 +01:00
Jan Holesovsky
dc37e633ef
android: JNI for the LOOLWSD initialization.
...
For the moment it crashes, so the actual call is commented out.
Change-Id: Ie4acb2a91f280dcc08951dcce417b8d4552cbfe7
2019-02-13 15:17:50 +01:00
Jan Holesovsky
e79f5f7ec6
android: Create the html, js and css and copy it to the right place.
...
Change-Id: I3efbba0ae369387796e2d08b3003e4f469610dda
2019-02-13 13:22:25 +01:00
Jan Holesovsky
6d8d40a267
android: Use configure for the rest of the hardcoded stuff in CMakeLists.txt.
...
Change-Id: I61ae98c87f439dffe6df4b9c61da7e7c5f968786
2019-02-13 12:09:36 +01:00
Jan Holesovsky
3af9580489
android: Generate the CMakeLists.txt from configure.
...
Change-Id: I9012e78adda55640c6fe74829fcb7f7a2fb25ce6
2019-02-13 11:32:49 +01:00
Gülşah Köse
8249dc78ae
android: Call javascript code from java
...
Change-Id: I29f1d0f672d262218ca82d8c9e1c10696c5b26bf
2019-02-13 10:53:41 +01:00
Gülşah Köse
3a748a2142
android: Call java code from javascript
...
Change-Id: I5b2907d6a6941d8debaf3150789f272f72413536
2019-02-13 10:53:41 +01:00
Gülşah Köse
52f2e78b9d
android: Embed a html file into webview
...
Change-Id: I73b3c7ad7a874cb90f33614d1d4bd0cb88b91117
2019-02-13 10:53:41 +01:00
Gülşah Köse
5f8819a749
android: Enable javascript
...
Change-Id: I841b0cfd50b2be6a946ba59571f4b15535354fcb
2019-02-13 10:53:41 +01:00
Gülşah Köse
02c679c9d6
android: Inital commit of the Java pieces.
...
Change-Id: I895d5aaaf7217b7fd556f7805c42d3ec1bdfc22d
2019-02-13 10:53:37 +01:00
Jan Holesovsky
4771ad0c4a
android: The order of static libraries is important.
...
Otherwise some symbols are optimized out, but needed by a later library.
2019-02-12 13:24:04 +01:00
Jan Holesovsky
4f03f09c53
android: Gradle project and other stuff to build.
2019-02-12 10:50:40 +01:00