Why does this give me a "java.net.SocketException: The socket argument is not a valid file descriptor"
I'm new to android programming.
added: I even tried this and received the same error:
If a network is not connected, is that what makes that error occur?
Thanks,
Clint
B4X:
If FirstTime Then
nPort=edtPort.Text 'editbox = nPort is an int
sIP=edtIP.Text 'editbox sIP is a string holding an IP address
Socket1.Connect(sIP,nPort,20000)
Activity.Title="AquaTECH System - Disconnected"
End If
I'm new to android programming.
added: I even tried this and received the same error:
B4X:
Socket1.Initialize("Socket1")
Socket1.Connect("169.254.1.1" , 2000, 20000)
If a network is not connected, is that what makes that error occur?
Thanks,
Clint
Last edited: