在新配置的Android 9平板电脑上，我安装了 total commander ，它可以打开大多数已知的压缩文件类型（
tgz ， 等等）。我想直接从Gmail应用程序打开这种压缩附件，而无需先保存它。但是，当我点击到
On a newly configured Android 9 tablet, I installed Total Commander which can open most of the known compressed file types (
tgz, etc). I want to open such a compressed attachment directly from the Gmail application without first saving it. However, when I tap to a
zip attachment in a mail, only a list of other installed applications that can handle the
zip file are shown, but not Total Commander. How can I add Total Commander to this list?
The Total Commander app can only work with saved ZIP files. This is defined in it's AndroidManifest.xml:
<intent-filter> <action android:name="android.intent.action.VIEW"/> <data android:mimeType="application/zip" android:scheme="file"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter>
As you can see there is only an entry for the
file scheme, but no for the
On Android users can not modify which app can handle what file format. Hence without a change by the author of Total Commands you can't do change this behavior on an unrooted device.
I contacted the developer of this software. They are going to make the necessary modifications in the coming releases. Currently, the first beta version fulfills my need with a limitation ("only when Total Commander was already running in the background when I click on the downloaded file"). This limitation will be addressed in "beta 2". I will update my answer when this is generally available.