Forms an AdbCommand that is passed to Adb.ExecuteAdbCommand()
Assembly: AndroidLib (in AndroidLib.dll) Version: 126.96.36.199 (188.8.131.52)
public static AdbCommand FormAdbCommand( string command, params Object args )
Public Shared Function FormAdbCommand ( command As String, ParamArray args As Object() ) As AdbCommand
public: static AdbCommand^ FormAdbCommand( String^ command, ... array<Object^>^ args )
static member FormAdbCommand : command : string * args : Object -> AdbCommand
- Type: SystemString
The command to run on the Adb Server
- Type: SystemObject
Any arguments that need to be sent to command
Return ValueType: AdbCommand
AdbCommand that contains formatted command information
This should only be used for non device-specific Adb commands, such as adb devices or adb version.
Never try to start/kill the running Adb Server, as the AndroidController type handles it internally.
//This example shows how to create an AdbCommand object to execute on the running server. //The command we will create is "adb devices". //Notice how in the formation, you don't supply the prefix "adb", because the method takes care of it for you. AdbCommand adbCmd = Adb.FormAdbCommand("devices");