Bug 89640 - android document browser: Indicator of available files
Summary: android document browser: Indicator of available files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: ARM Android
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-25 07:25 UTC by Nico Rikken
Modified: 2022-05-03 19:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Illustrated image via askbobrankin.com (15.62 KB, image/jpeg)
2015-02-25 07:25 UTC, Nico Rikken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Rikken 2015-02-25 07:25:06 UTC
Created attachment 113665 [details]
Illustrated image via askbobrankin.com

The current version of the document browser does not display the number of files in a folder. By giving a hint on the files in a folder, ideally recursively, a user is able to determine whether or a folder is worth looking at. This indication thereby helps when having forgotten the actual path of a particular file. Also the number of default folders in Android result in a large number of folders holding no viewable documents.

I guess such an indicator would have to analyse the file tree recursively to come up with a valuable conclusion, otherwise folders lack an indicator whilst further down in the tree document actually exist.

Possible implementations can vary in complexity:
- A visual hint whether documents are present (binary), possibly per file type.
- A count of the number of documents, possible per file type.

A suggestion is the way Microsoft uses content hints in their operating system, although this covers a larger variety of possible content.

(observed on Android 5.0.1 on a Nexus 5, installed via F-Droid)
Comment 1 Cor Nouws 2015-02-25 09:53:54 UTC
Thanks for filing Nico.
New enhancement.
(Needless to say that I'm not involved in setting priorities.)
Cheers,
Cor
Comment 2 Michael Weghorn 2022-05-03 19:52:21 UTC
Android Viewer now uses the documents provider framework [1], which uses the system file chooser provided by Android.
The app's custom file abstraction layer and documents browsing UI has been dropped in

commit a23bd42e9b2f6401c710ac95afcc3aa8f360d65c
Author: Michael Weghorn
Date:   Tue Apr 6 14:26:06 2021 +0200

    android: Drop custom file abstraction + UI

The custom document browsing mechanism, which was accessing the file system directly would also no longer be in line with security requirements for current Android versions, s.a. [2].
Using the document provider framework also provides consistency with other apps. 

Given the above, my understanding is that any improvements in how file browsing works would not be done in Android Viewer, but either in one of the existing document providers, or by creating a separate app that provides a new document provider or a different way of browsing the file system and opening files from there.

Therefore, I'm closing this as WORKSFORME. (NOTOURBUG or WONTFIX might fit as well.)


[1] https://developer.android.com/training/data-storage/shared/documents-files
[2] https://developer.android.com/about/versions/11/privacy/storage#scoped-storage