This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use TC4A with 'Tasker' ?

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android Printable version
View previous topic :: View next topic  
Author Message
Hurdet
Senior Member
Senior Member


Joined: 10 May 2003
Posts: 423

PostPosted: Tue Jul 03, 2018 2:24 am    Post subject: How to use TC4A with 'Tasker' ? Reply with quote

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?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35974
Location: Switzerland

PostPosted: Tue Jul 03, 2018 2:47 am    Post subject: Reply with quote

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.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hurdet
Senior Member
Senior Member


Joined: 10 May 2003
Posts: 423

PostPosted: Tue Jul 03, 2018 3:07 am    Post subject: Reply with quote

I'm able to get dialog but not get the filename picked.
Do it is possible to get filename in takser?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35974
Location: Switzerland

PostPosted: Tue Jul 03, 2018 3:48 am    Post subject: Reply with quote

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
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hurdet
Senior Member
Senior Member


Joined: 10 May 2003
Posts: 423

PostPosted: Tue Jul 03, 2018 3:51 am    Post subject: Reply with quote

I use IntentTask that wait for response but not get value in variable from tc intent.
Do it is NOT possible to send a intent to tasker from tc button?
Back to top
View user's profile Send private message
Hurdet
Senior Member
Senior Member


Joined: 10 May 2003
Posts: 423

PostPosted: Wed Jul 04, 2018 6:16 pm    Post subject: Reply with quote

When i true this shell:

am broadcast -a com.ghisler.android.TotalCommander.TotalCommander -e ghisler_fileName "/storage"

it not work.
Do it need root?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35974
Location: Switzerland

PostPosted: Thu Jul 05, 2018 1:42 am    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group