AdbFormAdbCommand Method (Device, String, Object) AndroidLib - Beatsleigher Edition
Forms an AdbCommand that is passed to Adb.ExecuteAdbCommand()

Namespace: RegawMOD.Android
Assembly: AndroidLib (in AndroidLib.dll) Version: 1.5.2.0 (1.5.2.0)
Syntax

public static AdbCommand FormAdbCommand(
	Device device,
	string command,
	params Object[] args
)

Parameters

device
Type: RegawMOD.AndroidDevice
Specific Device to run the command on
command
Type: SystemString
The command to run on the Adb Server
args
Type: SystemObject
Any arguments that need to be sent to command

Return Value

Type: AdbCommand
AdbCommand that contains formatted command information
Remarks

This should only be used for device-specific Adb commands, such as adb push or adb pull.
Examples

This example demonstrates how to create an AdbCommand
//This example shows how to create an AdbCommand object to execute on the running server.
            //The command we will create is "adb pull /system/app C:\".  
            //Notice how in the formation, you don't supply the prefix "adb", because the method takes care of it for you.
            //This example also assumes you have a Device instance named device.

            AdbCommand adbCmd = Adb.FormAdbCommand(device, "pull", "/system/app", @"C:\");
See Also

Reference