我有一个变量,指示我的Socket连接时,所以现在我需要通过OutputStream打印我的加速度计值。
答案 0 :(得分:0)
ClientSocket = new Socket(IP, PORT);
out = new PrintWriter(ClientSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(ClientSocket.getInputStream()));
out.println(printurstuff);