I'm trying to do a simple android client app that connects to a windows forms server. I'm using C#.
I read all about sockets and how to do the simple socket connection which I desire to do.
I'm now dealing the exception of NetworkOnMainThread -
I tried reading about threads, async and services because I understood the general idea of the problem but couldn't make it work.
Can anyone please help me write an async method or a thread or a service that will allow me to do that connection and give a little explanation with it also?
in C# please.
Thanks a lot!