android.os
Class Exec
java.lang.Object
android.os.Exec
public class Exec
- extends Object
|
Constructor Summary |
Exec()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exec
public Exec()
createSubprocess
public static FileDescriptor createSubprocess(String cmd,
String arg0,
String arg1)
- Parameters:
cmd - The command to executearg0 - The first argument to the command, may be nullarg1 - the second argument to the command, may be null
- Returns:
- the file descriptor of the started process.
createSubprocess
public static FileDescriptor createSubprocess(String cmd,
String arg0,
String arg1,
int[] processId)
- Parameters:
cmd - The command to executearg0 - The first argument to the command, may be nullarg1 - the second argument to the command, may be nullprocessId - A one-element array to which the process ID of the
started process will be written.
- Returns:
- the file descriptor of the started process.
setPtyWindowSize
public static void setPtyWindowSize(FileDescriptor fd,
int row,
int col,
int xpixel,
int ypixel)
waitFor
public static int waitFor(int processId)
- Causes the calling thread to wait for the process associated with the
receiver to finish executing.
- Returns:
- The exit value of the Process being waited on
Please submit a feedback, bug or feature