We can execute shell comands by using Runtime class like this.
Runtime.getRuntime().exec("ls");
The above piece of code will create a native process for given command ls, will return same process as a Process object.
For more details about it [Check here][1]
[1]: http://developer.android.com/reference/java/lang/Runtime.html#exec%28java.lang.String%29
We can execute shell comands by using Runtime class.
Runtime.getRuntime().exec("ls");
The above piece of code will create a native process for given command **ls**, will return same process as a **Process** object.
For more details about it [Check here](http://developer.android.com/reference/java/lang/Runtime.html#exec%28java.lang.String%29)