I am building a Windows app, which acts like Android device manager. It can backup and edit content on Android. However, the biggest challenging is how to detect Android phone via USB port. Any advice on this?
You should use the adb utility to connect Android to a computer. The connection can be USB cable or wireless.
P.S you can also search for the code sample in Github