Page 1 of 1

Is it possible to launch TC programatically?

Posted: 2018-07-09, 13:20 UTC
by sjlouis

I download a zipped file with a Python program and extract informations from the file in the archive. After I use TC editor to see the contents of the final file.

I should want to launch TC from Python and better launch TC editor. I haven't found if it's possible to launch an application programmatically and then how to do. Is it possible? How?

Thank you :D .

Posted: 2018-07-09, 20:27 UTC
by ghisler(Author)
Here are some instructions:

For Total Commander, the app name is

Posted: 2018-07-09, 20:35 UTC
by sjlouis
Ok, thank you ghisler :D , I shall try it. And is it possible to launch directly TC Editor?

Posted: 2018-07-09, 20:40 UTC
by ghisler(Author)
In droid.startActivity, you would need to set the packagename and classname fields to:

A file name can be passed in the uri field. The action should be android.intent.action.VIEW.

Posted: 2018-07-09, 20:50 UTC
by sjlouis
Ok, I shall study these commands and do tests, I don't know them at all. I've found the same page you gave me but I don't understand the answer (I'm not easy in English), startActivity seems a little complex to use.

Thank you ghisler :D .

Posted: 2018-07-11, 11:20 UTC
by sjlouis
I've done tests but it doesn't work. In Fact Pydroid 3 doesn't use SL4A but Kivy. Qpython uses SL4A but my application doesn't work with Qpython which seems poorer and less recent.

I have to find how to launch an APK with Kivy even if there are more examples with SL4A.