Page 1 of 1

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

Posted: 2019-02-26, 06:56 UTC
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).

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

Posted: 2019-02-27, 13:33 UTC
by ghisler(Author)
Sorry, no idea - I will try to reproduce it.

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

Posted: 2019-03-02, 07:30 UTC
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?

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

Posted: 2019-03-03, 09:53 UTC
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).