Have you tried reading the stream into a byte buffer instead of a string? Perhaps the server is simply not sending a newline character.
On Thu, May 5, 2011 at 11:23 PM, Yondaime <[email protected]>wrote: > I am able to connect and send data to the server, but i cant read from > server... > this is what i am using : > > BufferedReader inFromServer = new BufferedReader(new > InputStreamReader(sock.getInputStream())); > String message = inFromServer.readLine(); > // it is not working > > any alternate method ? > please it is urgent i am so late :S > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

