I want to create application in Delphi which communicate with USB connected android device.
This application have to following features:
- Displays the list of connected devices.
- Send and Receive any file From/To device.
- Install APK file on device directly from PC.
Yes, it's sound like use of Android Debug Bridge(ADB). But how to use ADB or any other method to achieve this functionality.
Edit: I tried adb.exe with shellExecute.
strParameter := '/c "C:\Program Files\android-sdk\platform-tools\adb" push "' +
strLocalFile + '" ' + strRemotePath + ' > c:/out.txt';
ShellExecute(0, // Handle
'open', // Operation
PChar('cmd.exe'), // File Name
PChar(strParameter), // Parameters
PChar(ExtractFilePath('cmd.exe')),// Directory
SW_HIDE)) > 32 then begin // Show Cmd
ShowMessage('Success..');
end;
But not getting proper output and file not goes to destination. Please tell me any other method.