SocketAddress address = new InetSocketAddress(Application.TCP.PUSH_HOST,
Application.TCP.PUSH_PORT);
这个在UI线程里写,会报anr异常,socket socket = new socket();
socket.connect(address);
在,子线程进行初使化 address
SocketAddress address = new InetSocketAddress(Application.TCP.PUSH_HOST,
Application.TCP.PUSH_PORT);
这个在UI线程里写,会报anr异常,socket socket = new socket();
socket.connect(address);
在,子线程进行初使化 address