7 Commits
Author SHA1 Message Date
Weblateandvpanter a90fc86337 android-viewer translated using Weblate
Dutch currently translated at 100.0% (116 of 116 strings)

Change-Id: I04bad1324f8cb273f10468d43da4d80dcbcc17a1
Co-authored-by: Weblate <noreply@documentfoundation.org>
Co-authored-by: vpanter <Leo.Moons@proximus.be>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/nl/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210659
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-09-24 15:04:41 +02:00
Michael Weghorn eb909d6847 tdf#173650 android: Resolve MIME type if not passed in intent
If the intent for opening the document does not have
the MIME type set, use ContentResolver to resolve
the MIME type from the document URI.

On top of previous commit

    Change-Id: I6a81dd65e7ef9a233ee9b507c9e133d419cf985c
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon Sep 21 14:47:26 2026 +0200

        tdf#173650 android: Support opening Markdown files

, this also makes the scenario of opening a Markdown
document work on an an Android AVD with API level 37
(Android 17) when trying to open the file from within
the app ("Select file to open") instead of passing the
file "from outside" (e.g. by opening it from the
"Files" app).

Change-Id: Ie071ce8770155b97dd3a70d26620560a39a7e356
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211292
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-09-21 20:12:28 +02:00
Michael Weghorn f26de39170 tdf#173650 android: Support opening Markdown files
Declare support for the Markdown MIME type
"text/markdown" for LibreOffice Viewer for Android.

Similar to CSV, make sure that the temporary file
passed to LibreOffice has a file name ending on
".md", otherwise it is imported as a plain text
file instead of a Markdown document.

This allows opening Markdown files from the Android
file manager ("Files" app) as tested successfully
on an Android AVD with API level 37 (Android 17).

However, when trying to open the file from within
the LibreOffice app ("Select file to open"), the
file is still grayed out and cannot be selected.
This will be addressed separately in upcoming commit

    Change-Id: Ie071ce8770155b97dd3a70d26620560a39a7e356
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon Sep 21 14:51:38 2026 +0200

        tdf#173650 android: Resolve MIME type if not passed in intent

Change-Id: I6a81dd65e7ef9a233ee9b507c9e133d419cf985c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211291
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-09-21 20:11:43 +02:00
Andrea Gelmini 6a1480506d Fix typos
Change-Id: I9d99aba8500ea31628e4b883974bb60181407647
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210562
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 22:08:01 +02:00
Michael Weghorn 1a18114fce android: Set installLocation="auto" in Manifest
This allows flexibility on where the app gets installed,
either on internal or external storage, see [1].

Explicitly prefering external location was originally
introduced in

    commit 015e1b8444
    Date:   Fri Jun 28 09:48:41 2013 +0200

        android: prefer external storage in DocumentLoader / LibreOffice4Android

        With this, these apps can be used even if /data is something like 128MB,
        e.g. on normal phones, not tablets / emulators.

, but there seems to be no particular reason for that any more these
days, as either internal or external are fine (and internal
device storage tends to be larger these days as well).

For the debug build configuration, install location was
set to "internalOnly" in

    commit 02119a79c1
    Date:   Mon Oct 13 10:19:25 2014 +0200

        android: When debugging, the installLocation must be "internalOnly".

        Otherwise the gdbserver ends up with

        run-as: exec failed for /data/data/org.libreoffice/lib/gdbserver Error:Permission denied

        (you need to run ndk-gdb with --verbose to see that).

temporarily, but then was already "auto" since

    commit 66518ead51
    Author: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
    Date:   Thu Aug 31 11:50:51 2017 +0200

        use extractNativeLibs="false" for less disk usage and faster installation

        [...]

        also revive installLocation attribute to allow installation on external
        storage and move from manifestPlaceholders from defaultConfig to release
        buildType (as otherwise gradle complains about having "Multiple entries
        with same key")

Using 'installLocation="auto"' is also a requirement
for the Meta Horizon Store, see [2].

[1] https://developer.android.com/guide/topics/data/install-location
[2] https://developers.meta.com/horizon/resources/publish-mobile-manifest/

Change-Id: Ie40dddbf2886f0693bcd38b7eed85916e2319343
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209420
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-20 23:51:17 +02:00
WeblateandAdolfo Jayme Barrientos 7f7942b3da android-viewer translated using Weblate
Aragonese currently translated at 41.3% (48 of 116 strings)

Change-Id: I1abed4927dc78b007dd7231f4bf3ec92c297ea55
Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Co-authored-by: Weblate <noreply@documentfoundation.org>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/an/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208976
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-16 18:58:09 +02:00
Ivan Vladimirovich Kuznetsov 56ef560f84 Android. Rename source module to app
According to documentation
https://developer.android.com/build/android-build-structure
the root module should be named "app".
So the source module was renamed.

Change-Id: I1d8e239ab2df54cc294aa7da0a9746a87952bb3c
2026-07-20 14:49:35 +02:00