There is a tablet type here in Serbia called Tesla Tablets.
My application uses .NET sockets to make a connection between that tablet and a windows machine.
The error i get when i start the application on android is:
Unable to find user32.dll
Unable to find Kernel32.dll
Which confuses me totally since its running on android.
Is there a way to build thse dll-s into my build?
user32.dll and Kernel32.dll are native Windows Operating system dynamic link libraries.
No, you can’t use those.
I am a bit unsure what the situation is here; But if you added Windows .NET assemblies into your project, remove them from your Assets folders. Mono should have platform independent System.Net.Sockets namespace and you shouldn’t have to reference platform specific libraries. You should be able to access System.Net.Sockets without referencing additional libraries.
Here is the code:
this method is called on Start() method
Debug.LogError ("Strting to listen");
remote_end = new IPEndPoint(IPAddress.Any, startup_port);
udp_client = new UdpClient(remote_end);
udp_client.EnableBroadcast = true;
//this method is called every 0.5 seconds.
udp_client = new UdpClient();
string BroadcastAdress = NetworkHelper.GetIpAdressForBroadcast();
remote_end = new IPEndPoint (IPAddress.Parse(BroadcastAdress), startup_port);
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);