Integration with DiskUsage
Closed this issue · 6 comments
The FOSS app DiskUsage displays the folders and files on the filesystem proportional to filesize. The user can select a folder and open it in any file browser supporting integration with DiskUsage. If none are found, DiskUsage displays a dialog titled: "Missing compatible file manager". It advises users to ask their favourite file manager developer for integration with DiskUsage (which I'm doing now) or to install Solid Explorer or IO File Manager.
I would like to note the possible opportunity of getting the DiskUsage devs to mention Material Files in return. Since it would be the only FOSS file manager listed, I can imagine they would like would even like to suggest Material Files over the alternatives. The current favourite seems to be Solid Explorer, which in the dialog is given a dedicated "Install Solid Explorer" button, that takes the user to its store page.
It seems this app should already be supporting DiskUsage looking at its code:
intent = new Intent(Intent.ACTION_VIEW);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setDataAndType(uri, "inode/directory");
And Material Files code (the <data>
tags have an OR relationship IIRC):
<intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="inode/directory" />
<data android:mimeType="resource/folder" />
<data android:mimeType="vnd.android.document/directory" />
</intent-filter>
What did you actually observe when having Material Files installed and opening a directory in DiskUsage?
Hi @zhanghai! In DiskUsage, after selecting a folder and pressing the "sʜᴏᴡ" button, the following dialog appears:
Do you think it could be an issue on DiskUsage's end?
Yes. Could you ask the DiskUsage to take a look at my previous comment?
@zhanghai I created an issue on DiskUsage's Github. The developer, @IvanVolosyuk, has responded there. Based on his comment, would you be able to determine what changes are needed in which app to support integration?
Any news? Just experienced this as well :/