How to detect when phone is connected to the PC with a USB cable

ranba790

Member
Licensed User
Longtime User
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
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

ranba790

Member
Licensed User
Longtime User
I am actually looking to upload a file from the phone to the PC, not from the PC to the phone
Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…