In Android how do I disconnect a socket?
android, disconnect, sockets
Solution
`isConnected()` only tells you if you made a successful connection to a socket. `isClosed()` tells you if you called `close()`.
Check out this guys response https://stackoverflow.com/a/3701249/2453771
Problem
So I've got a socket that is connected to an outside web address and when it gets a certain message it's supposed to disconnect. I tried calling `socket.close()` but `socket.isConnected()` is still true. No luck searching for an answer