I haven't heard of anything like that in months. Of course you can share the data using USB and you can also determine when a socket is connected to the USB port in C#. For example like this Windows Runtime API for "
developing Windows applications for USB[
^]". You will get the resources required to program an application that connects to USB ports and communicates (
like accessing data) from that document that I have shared right now.
But on the Android side there have not been anything that you can use, apart from that USB debugging thing. If you are still interested in doing so, I suggest you learn more about
USB debugging[
^] and how it works etc. USB debugging would allow you to get
system-level clearance from a PC to perform different actions on Android devices that only system has permissions to.
Sending data from an Android device to a C# based application can have many other solutions if you simply ignore the USB term. I can help you count a few:
1. Creating a USB listener
- Connect your Android and then use the USB port to communicate to it as a USB device, not as Android client.
2. Create a TCP server and allow Android to communicate to it as a TCP client.
3. Create a web service and use it.
- Can be complicated.
4. Create an ASP.NET Web API and use it from the browser in Android device.
5. Use Bluetooth or other technologies for transmitting the data.
These methods can be used if only you can skip the USB term, because USB can share the contents from the device to device, but application to application data sharing is not something that I have heard until now. :-) I would love to know of such a mechanism, if exists. But would be a tough!