How to use TC4A with 'Tasker' ?
Moderators: Hacker, petermad, Stefan2, white
How to use TC4A with 'Tasker' ?
Do it have a intent list to use with tasker?
do it is possible to select a file with tc browse and return in tasker variable?
Do it is possible to send a intent to tasker from tc?
do it is possible to select a file with tc browse and return in tasker variable?
Do it is possible to send a intent to tasker from tc?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The file picker/open/save dialog supports a few standard intents:
android.intent.action.SEND
android.intent.action.SEND_MULTIPLE
android.intent.action.CREATE_SHORTCUT
android.intent.action.RINGTONE_PICKER
android.intent.action.GET_CONTENT
org.openintents.action.PICK_FILE
org.openintents.action.PICK_DIRECTORY
android.intent.action.PICK
org.openintents.action.PICK_FILE
Either just send the intent without target application to get a dialog from any app, or use:
Activity: com.ghisler.android.TotalCommander.DirBrowseActivity
App: com.ghisler.android.TotalCommander
To open a directory in Total Commander, open the following activity:
com.ghisler.android.TotalCommander.TotalCommander
You can pass the directory via URL as file:// url, or as String extra with name
"ghisler_fileName" for active panel, and
"ghisler_fileName2" for inactive panel (optional).
The file:// portion can also be replaced with content:// to avoid crash with API 24.
android.intent.action.SEND
android.intent.action.SEND_MULTIPLE
android.intent.action.CREATE_SHORTCUT
android.intent.action.RINGTONE_PICKER
android.intent.action.GET_CONTENT
org.openintents.action.PICK_FILE
org.openintents.action.PICK_DIRECTORY
android.intent.action.PICK
org.openintents.action.PICK_FILE
Either just send the intent without target application to get a dialog from any app, or use:
Activity: com.ghisler.android.TotalCommander.DirBrowseActivity
App: com.ghisler.android.TotalCommander
To open a directory in Total Commander, open the following activity:
com.ghisler.android.TotalCommander.TotalCommander
You can pass the directory via URL as file:// url, or as String extra with name
"ghisler_fileName" for active panel, and
"ghisler_fileName2" for inactive panel (optional).
The file:// portion can also be replaced with content:// to avoid crash with API 24.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It doesn't seem to be possible with Tasker. There is an action to send an intent: System -> Send intent.
However, there seems to be no option to receive the reply. To do this in code, you would use startActivityForResult instead of startActivity. This would then execute the intent, and once it's done, the program would receive an onActivityResult callback with the data in another intent.
According to the following Google Groups message, you could do it with a Tasker plugin named IntentTask:
https://groups.google.com/forum/#!topic/tasker/rqpjyv22lnM
However, there seems to be no option to receive the reply. To do this in code, you would use startActivityForResult instead of startActivity. This would then execute the intent, and once it's done, the program would receive an onActivityResult callback with the data in another intent.
According to the following Google Groups message, you could do it with a Tasker plugin named IntentTask:
https://groups.google.com/forum/#!topic/tasker/rqpjyv22lnM
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This would send an intent to all apps implementing the action named "com.ghisler.android.TotalCommander.TotalCommander". However, this isn't an action, it's the name of the class of the main Total Commander window. It implements actions like "org.openintents.action.VIEW" for MIME type "vnd.android.documents/directory" and "resource/folder". However, multiple file managers may answer to this action.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How to use TC4A with 'Tasker' ?
Is there any way to get TC to open to a directory that is on a Windows PC (using the TC LAN plugin)?
I tried:
but that didn't work.
This is my Tasker task to set both the active and inactive panels of TC to specific directories (if anyone sees any mistakes please let me know):
I tried:
Code: Select all
ghisler_fileName:smb://<ip address>/music/
This is my Tasker task to set both the active and inactive panels of TC to specific directories (if anyone sees any mistakes please let me know):
Code: Select all
A1: Send Intent [
Action: com.ghisler.android.TotalCommander.TotalCommander
Cat: None
Mime Type: resource/folder
Data: ghisler_fileName:/storage/
Extra: ghisler_fileName2:/storage/emulated/0/
Package: com.ghisler.android.TotalCommander
Class: com.ghisler.android.TotalCommander.TotalCommander
Target: Activity ]
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How to use TC4A with 'Tasker' ?
No, you can't do that, you need to create a connection in the LAN plugin and go to the directory you want to open via Tasker. You can then see the path you need to use in Tasker, e.g.Is there any way to get TC to open to a directory that is on a Windows PC (using the TC LAN plugin)?
///LAN/connection_name/subdirectory
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com