How to run terminal command in Android application?

前端 未结 3 1270
心在旅途
心在旅途 2020-12-08 01:10

How to send a command to the terminal through android app and get the output back? For example, sending \"ls /\" and getting the output to print it in the GUI?

3条回答
  •  甜味超标
    2020-12-08 01:54

    Try this answer there is way to run shell commands on android programmatically https://stackoverflow.com/a/3350332/2425851

提交回复
热议问题