[android-developers] Re: BufferedReader hangs on readline

2011-09-12 Thread petter
On Sep 12, 12:45 am, Nick Risaro nris...@gmail.com wrote: On Sun, Sep 11, 2011 at 5:54 PM, petter petter.gus...@gmail.com wrote: Are end of line characters handled differently in Android? Probably, the EoL is encoding dependent. Try forcing the encoding to something like UTF-8 in both ends

[android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread petter
Are the end of line characters treated differently? It seem to work fine if I use char[] buf = new char[8192]; On Sep 11, 7:14 pm, petter petter.gus...@gmail.com wrote: I'm trying to read a response from a server and BufferedReader.readline will block and never return. If

[android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread petter
It seem to work if I use read instead of readline like: char[] buf = new char[8192]; int charsRead; charsRead = d.read(buf,0,buf.length); Are end of line characters handled differently in Android? -- You received this message because you are

Re: [android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 5:54 PM, petter petter.gus...@gmail.com wrote: Are end of line characters handled differently in Android? Probably, the EoL is encoding dependent. Try forcing the encoding to something like UTF-8 in both ends of the socket. -- You received this message because you are