Bug 125317 - LO Viewer for Android is not recognized as able to open .odt files
Summary: LO Viewer for Android is not recognized as able to open .odt files
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 129769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-15 23:04 UTC by Jim Avera
Modified: 2020-03-09 16:02 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2019-05-15 23:04:25 UTC
Description:
After installing LO Viewer for Android, attempting to open a .odt file using the "My Files" app still gives an error saying no application exists to open that file type.

I went to the Android config "apps" screen, and for Libre Office Viewer the "Set as default" section was greyed out (inactive) with the notice "None set as default".

There is no obvious way that I could find to manually configure the app to be used to open .odt files.

Steps to Reproduce:
1.Install Libre Office Viewer for Android through the Play Store
2.Get an .odt file onto the phone, e.g. download with a browser
3.Use the "My Files" app (a Samsung thing, don't know about others) to navigate to the relevant folder (e.g. Downloads) and tap .odt file to open it.

Actual Results:
Pop-up says there is no app configured to open that file type, and offers to open Android Play Store to install something.

Expected Results:
Installing LO Viewer for Android should automatically configure the os to make LO Viewer the default app for, at least, the ODF file types; or provide a user dialog to configure same.



Reproducible: Always


User Profile Reset: No



Additional Info:
I installed LibreOffice Viewer Version 6.1.0.0.alpha0+ Build ID 484d0ea842da 
My phone is a Samsung Galaxy s7 running Android 8.0.0
Comment 1 Jim Avera 2019-05-15 23:56:24 UTC Comment hidden (obsolete)
Comment 2 Timur 2019-06-18 15:00:02 UTC
Hello Jim. Thanks for comments. 
Play has older version. Please test with current from https://dev-builds.libreoffice.org/daily/master/Android-ARM@24-Bytemark-Hosting/current/
Comment 3 QA Administrators 2020-02-14 02:31:53 UTC Comment hidden (obsolete)
Comment 4 Terrence Enger 2020-03-01 15:17:33 UTC
On a Samsung J3 with android version 8.0.0 and kernel 3.18.14-..., I
downloaded and installed and installed
master~2020-02-29_01.00.10_LibreOfficeViewer-strippedUIEditing-debug.apk.
When I select a .odt from "My Files", the system tells me:

    You don't have any apps that can open this type of file.

I am setting bug status NEW.
Comment 5 Michael Weghorn 2020-03-04 07:34:42 UTC
I've seen this on a Samsung A8 as well. At a quick glance, that seems to be an issue with the "My Files" app, not the LibreOffice Viewer.

When using e.g. "Simple File Manager Pro" [1] instead, it works as expected. Interestingly, '.docx' and '.xlsx' files are also properly associated in the Samsung app, while '.odt' and '.ods' ones are not.


[1] https://f-droid.org/en/packages/com.simplemobiletools.filemanager.pro/
Comment 6 Michael Weghorn 2020-03-04 12:55:10 UTC
(In reply to Michael Weghorn from comment #5)
> When using e.g. "Simple File Manager Pro" [1] instead, it works as expected.
> Interestingly, '.docx' and '.xlsx' files are also properly associated in the
> Samsung app, while '.odt' and '.ods' ones are not.

Correction: '.ods' works for me now, at least after I did an update of the Samsung "My Files" app to version 10.1.06.661. I *think* I tested before and it did not work with version 10.0.02.102, but I might be wrong, cannot say by 100% whether I actually tested...
'.odt' still does not work.

Also, those MIME type associations work just fine when opening an ODT file from e.g. the email app.

And also, tapping on an '.odt' file also does offer to open the MS Office app either if that one is installed, which does work from other file managers. So I'm pretty sure that this is a problem with the Samsung "My Files" app, not LibreOffice.

Closing as NOTOURBUG accordingly.
Comment 7 Michael Weghorn 2020-03-04 14:09:22 UTC
(In reply to Michael Weghorn from comment #6)
> And also, tapping on an '.odt' file also does offer to open the MS Office
> app either if that one is installed, [...]

That should've read "And also, tapping on an '.odt' file also does **NOT** offer [...]"
Comment 8 Michael Weghorn 2020-03-04 14:42:00 UTC
(In reply to Michael Weghorn from comment #6)
> Correction: '.ods' works for me now, at least after I did an update of the
> Samsung "My Files" app to version 10.1.06.661. I *think* I tested before and
> it did not work with version 10.0.02.102, but I might be wrong, cannot say
> by 100% whether I actually tested...
> '.odt' still does not work.

Another update: ODS sometimes works, which seems to depend on the "perspective" that is being used in the app, e.g. I can open a specific ODS file when it appears in the "Recent Files" at the top of Samsung's "My Files" app, or when navigating to "Internal Storage" -> "Downloads" and selecting the file there, but not when using "Category" -> "Downloads" on the start screen of the app.

I don't have the impression of having understood what circumstances make the app open ODS files or not, but this all IMHO confirms the problem is caused by the Samsung app and not LibreOffice.

Other than ODS, ODT files consistently did not work in my tests.
Comment 9 Michael Weghorn 2020-03-09 13:31:56 UTC
*** Bug 129769 has been marked as a duplicate of this bug. ***
Comment 10 eherbj 2020-03-09 16:02:05 UTC
I can confirm that the newer version of Samsung MyFiles does open properly .ods files and the older version did not. The newer version of MyFiles still does not open .odg or .odp files properly as stated above.