开发者

How to execute commands with Android SDK like a terminal?

开发者 https://www.devze.com 2023-04-08 20:50 出处:网络
I want to develop a terminal app in Android. In C#, we have: System.Diagnostics.Process.Start(\"path of aplication\")

I want to develop a terminal app in Android.

In C#, we have:

System.Diagnostics.Process.Start("path of aplication")

Its like running a program开发者_运维知识库 directly because each command is a program in Windows. I don't know how it works in Linux.


Use ProcessBuilder to create OS processes.


I find other solution, thank for all guys

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

0

精彩评论

暂无评论...
验证码 换一张
取 消