Build 1.0_r1(from source)

android.os
Class Exec

java.lang.Object
  extended by android.os.Exec

public class Exec
extends Object


Constructor Summary
Exec()
           
 
Method Summary
static FileDescriptor createSubprocess(String cmd, String arg0, String arg1)
           
static FileDescriptor createSubprocess(String cmd, String arg0, String arg1, int[] processId)
           
static void setPtyWindowSize(FileDescriptor fd, int row, int col, int xpixel, int ypixel)
           
static int waitFor(int processId)
          Causes the calling thread to wait for the process associated with the receiver to finish executing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exec

public Exec()
Method Detail

createSubprocess

public static FileDescriptor createSubprocess(String cmd,
                                              String arg0,
                                              String arg1)
Parameters:
cmd - The command to execute
arg0 - The first argument to the command, may be null
arg1 - 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 execute
arg0 - The first argument to the command, may be null
arg1 - the second argument to the command, may be null
processId - 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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature