Shayer Mahmud
Shayer Mahmud

Reputation: 193

Start ACODE or any other text editor from Termux

I have a file in my directory named file.sh

What I want is to directly open this file with any GUI based Text Editor of android from a Termux command/script. I prefer ACODE because of it's simplicity. Any other editor would do the job.

I know that am start --user 0 -n com.Package.name/MainActivity would open the app, but I want to pass the file also with it. Is it possible? If possible, then how?

Upvotes: 5

Views: 2963

Answers (1)

Shayer Mahmud
Shayer Mahmud

Reputation: 193

I have found a solution to get my work done. I opened an FTP server in Termux and then connected my ACODE to the FTP. Now everything works fine.

Upvotes: 4

Related Questions