I just want to command to Termux with a stream in Xamarin.Forms. here is how to I can execute shell but for passing command to termux I have qustion I included Java libraries to my xamarin-forms project to exectute shell to android app here is the code:
Java.Lang.Process su = Java.Lang.Runtime.GetRuntime().Exec("com.Termux");
Java.IO.DataOutputStream outputStream = new Java.IO.DataOutputStream(su.OutputStream);
outputStream.WriteBytes("nano demo.cpp");
outputStream.Flush();
I try this and it isn't working and throwing an exception :
'Cannot run program "com.Termux": error=2, No such file or directory'
what should I pass to .Exec()
constructor parameter to open termux and wait for command?