- Home /
Android blank screen when can't connect to server
My Android application returns a blank screen, like it gets stuck on TcpClient attempting to connect. It works fine when Server is up, and works fine on Unity Debugger (PC). What do i have to do?
void Start() {
try {
_thread = new Thread(ReceiveData);
_thread.IsBackground = true;
_client = new TcpClient(serverAddress, serverPort);
_stream = _client.GetStream();
_thread.Start();
isConnected = true;
MyFunction();
} catch (Exception e) {
MyFunction();
}
MyFunction();
}
Comment
Ok, it's not Scene$$anonymous$$anager the problem, but TcpClient itself getting stuck when can't reach the server. Any idea?
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Problem with GetNetworkTime 0 Answers
Using GUI buttons to move a sprite (C#) 2 Answers
How to pass Java object to C#? 2 Answers