I want to develope an Android app that interacts with C# (just sending strings back and forth at first). However I have nou experience with listening to ports and getting data from them in either language. The PC and device will be on the same network. What “basic code” do I need to begin sending string values between Android and C#?
Share
I’m guessing that you want asynchronous, random communication between the two. One sends the other some data, and the other sends a response of some sort?
You probably want sockets. http://www.edumobile.org/android/android-development/socket-programming/
It’s quite similar on the C# side.
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx
Hope it helps…