[英]How to execute commands with Android SDK like a terminal?
I want to develop a terminal app in Android. 我想在Android中开发一个终端应用。
In C#, we have: 在C#中,我们有:
System.Diagnostics.Process.Start("path of aplication")
Its like running a program directly because each command is a program in Windows. 就像直接运行程序一样,因为每个命令都是Windows中的程序。 I don't know how it works in Linux.
我不知道它在Linux中如何工作。
使用ProcessBuilder创建OS进程。
I find other solution, thank for all guys 我找到其他解决方案,谢谢大家
http://saurabh-nigam.blogspot.com/2010/10/running-android-native-code.html http://saurabh-nigam.blogspot.com/2010/10/running-android-native-code.html
this project make the same: https://github.com/gimite/android-native-exe-demo 这个项目是一样的: https : //github.com/gimite/android-native-exe-demo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.