[Feature request] %S variable for multiple files

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
B@ron
Junior Member
Junior Member
Posts: 13
Joined: 2015-10-07, 20:42 UTC

[Feature request] %S variable for multiple files

Post by *B@ron »

Hi.

%S variable is needed for the transfer of names of multiple files. It is necessary to use the buttons shell - loops (for, while, until)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Android only supports one file parameter in the form URI (Intent.setData()).

The correct way is to use the list: parameter. From the help:
http://www.ghisler.com/android/help.htm#button_dialog
list:
Send the list of selected files as URL list via putParcelableArrayListExtra.
Automatically sets MIME type to type common to all files, e.g. audio/mp3, audio/*, */*
Also changes ACTION_SEND to ACTION_SEND_MULTIPLE
list:NAME
Like list:, but sets name used by putParcelableArrayListExtra.
Author of Total Commander
https://www.ghisler.com
Post Reply