I'm trying to send selected files to my pyTextDiff app.
I created a custom with following definition:
* Function: start program
* command: (the selected app)
* parameters: url:data:application/json,["%P%N","%T%M"]
But in my app, I get the string data:application/json,["%P%N","%T%M"] and the variables are not replaced by the paths / filenames
Button Variables not expanded
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Button Variables not expanded
First, use "view with app" instead of "start program". Action.MAIN usually doesn't have parameters.
Second, you need to select a file in each panel by clicking on their icons to have them as parameters.
Third, this call
setData(Uri.parse(parameter))
with parameter containing data:application/json,["/path1/file1","/path2/file2"]
is this really what you want?
Second, you need to select a file in each panel by clicking on their icons to have them as parameters.
Third, this call
setData(Uri.parse(parameter))
with parameter containing data:application/json,["/path1/file1","/path2/file2"]
is this really what you want?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Button Variables not expanded
Yes, that was the idea.is this really what you want?
But maybe you are right and I'm better off with adding a VIEW intent to my app.