how to read socket input stream in Android
问题 can anybody tell me how to read socket input stream. Here is my code. if (!serverIpAddress.equals("")) { try { InetAddress serverAddr = InetAddress.getByName(serverIpAddress); Log.i("ClientActivity", "Connecting..."); Socket socket = new Socket(serverAddr, 5777); try { Log.i("ClientActivity", "Sending command."); PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket .getOutputStream())), true); // where you issue the commands out.println("<maplist />"); Log.i(