R ranba790 Member Licensed User Longtime User Dec 23, 2012 #1 Hi How can i detect when the phone is connected to a PC with a USB cable and then upload a file to the PC threw the USB connection Thanks
Hi How can i detect when the phone is connected to a PC with a USB cable and then upload a file to the PC threw the USB connection Thanks
NJDude Expert Licensed User Longtime User Dec 23, 2012 #2 Take a look at the Phone library, especially the PhoneEvents there you can determine if the device is plugged in or not, to transfer files you fill have to create your own routines using ADB, search the forums there are some samples about its use. Upvote 0
Take a look at the Phone library, especially the PhoneEvents there you can determine if the device is plugged in or not, to transfer files you fill have to create your own routines using ADB, search the forums there are some samples about its use.
Erel B4X founder Staff member Licensed User Longtime User Dec 24, 2012 #3 If the device is not connected in USB debug mode then it is very difficult to copy files programmatically. It will be easier to connect to the local network (wifi) and use SMB library. Upvote 0
If the device is not connected in USB debug mode then it is very difficult to copy files programmatically. It will be easier to connect to the local network (wifi) and use SMB library.
R ranba790 Member Licensed User Longtime User Dec 27, 2012 #4 USB Debug Mode The device is connected in USB debug mode, how do i copy the file Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2012 #5 You can use 'adb push' to copy a file to the device. Upvote 0
R ranba790 Member Licensed User Longtime User Dec 27, 2012 #6 I am actually looking to upload a file from the phone to the PC, not from the PC to the phone Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2012 #7 You can use adb pull. You can also create a TCP connection through ADB. You will need to create a desktop "server" program that will receive the file. Upvote 0
You can use adb pull. You can also create a TCP connection through ADB. You will need to create a desktop "server" program that will receive the file.