summaryrefslogtreecommitdiff
path: root/android/source/res/values/strings.xml
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-03-19 14:29:36 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2021-03-22 07:57:51 +0100
commitd678ee309b02b4cc8af29a097bf5053b8b1b4e06 (patch)
treea5e28a1540e355a7a0ac9493a73c638bc65e6f66 /android/source/res/values/strings.xml
parent2df8b776e635efc5e59aaf6c8a5a7f4c218d74d0 (diff)
tdf#129833 android: Allow opening files using system file picker
Extend Android Viewer with the possibility to select a file to open using the "system file picker", which can be opened by an Intent that has the action 'Intent.ACTION_OPEN_DOCUMENT' (or 'Intent.ACTION_GET_CONTENT' for API level < 19) set. This way, all locations supported by currently installed and set up DocumentsProviders [1] are generally supported. In a test, opening local files worked just fine, but trying to open a file located in a NextCloud share failed (with the corresponding app [2] installed), showing this in ADB log: I DownloadFileOperation: Download of /Documents/five_pages.odt to /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/<USERNAME>@demo2.nextcloud.com/Documents/five_pages.odt: Unexpected exception E DocumentsStorageProvider: RemoteOperationResult(mSuccess=false, mHttpCode=-1, mHttpPhrase=null, mException=android.os.NetworkOnMainThreadException, mCode=HOST_NOT_AVAILABLE, message=null, getLogMessage=Unexpected exception) This will be dealt with in a separate commit. For now, this way to open files (and a corresponding menu entry) is added in addition to the existing ones, but since that method should in general be able to cover all of the other use cases as well, the other options may be dropped in the future. [1] https://developer.android.com/reference/android/provider/DocumentsProvider [2] https://github.com/nextcloud/android Change-Id: I684a4aa770c0df7cc9fc35ff92445230405885f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112768 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'android/source/res/values/strings.xml')
-rw-r--r--android/source/res/values/strings.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/source/res/values/strings.xml b/android/source/res/values/strings.xml
index a44d81ee5faf..8205176df685 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -22,6 +22,9 @@
<string name="new_drawing">New Drawing</string>
<string name="default_document_name">untitled</string>
+ <string name="system_file_selector">System File Dialog</string>
+ <string name="select_file_to_open">Select file to open</string>
+
<string name="browser_app_name">LibreOffice Browser</string>
<string name="menu_search">Search</string>
<string name="list_view">List</string>