[bug] TC4A 3.0b1 can't open zip, rar from desktop, other apps

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

[bug] TC4A 3.0b1 can't open zip, rar from desktop, other apps

Post by *DrShark »

To reproduce in (tested in Total Commander for Android 3.0 beta 1 on Android 4.3.1):
1) in TC4a, create a link on Desktop to zip or rar file. Or open the 3rd party app that allows to open zip/rar with associated apps (I tried to open from Downloads from Opera Mobile Classic browser).
2) Try to open the archive file from Android desktop or 3rd-party app:
TC4A will show "Getting directory" message, which won't self-close. To close it, a tap (or many taps) on "Cancel" button of "Getting directory" window is required.

Expected behavior: zip archive should be opened or TC4A should ask for archive password (if rar archive with file names protected by password.)

An error doesn't happen if zip or rar archive is opened from TC4A itself. Also, since TC currently doesn't open 7zip archives from Android desktop (and 3rd party apps, at least directly, because *.7z type isn't associated with TC4A on system level), an error doesn't affect *.7z (and probably other formats supported by 7zip library).
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [bug] TC4A 3.0b1 can't open zip, rar from desktop, other apps

Post by *ghisler(Author) »

Sorry, no idea - I will try to reproduce it.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: [bug] TC4A 3.0b1 can't open zip, rar from desktop, other apps

Post by *DrShark »

history2.txt wrote: 2019-03-01 Fixed: Opening archives from the launcher/external apps may fail due to a timing problem (app.currentActivity wasn't set yet when the background thread tried to access it)
I can confirm this bug is fixed (for zip and rar) in TC4A 3.0 beta 2.
7z archives are still opened only internally - is this intentional, or in future it will be possible to open formats supported by 7zip library from desktop/external apps too?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [bug] TC4A 3.0b1 can't open zip, rar from desktop, other apps

Post by *ghisler(Author) »

Currently they are only opened within TC because I haven't defined any associations for 7z. Maybe I will add it in a future version, but I don't know whether Android supports the MIME type for 7z (application/x-7z-compressed).
Author of Total Commander
https://www.ghisler.com
Post Reply