I'm trying to create an android Telnet client. I'm using the TelnetClient class and create an object. Then i get an InputStream with getInputStream() and from it i create an InputStreamReader. This runs on a separate from the main thread. The TelnetInputAvailable() of a TelnetInputListener object is called every time the input buffer goes from zero to none zero bytes. So inside this method i try to get the data calling the read() method of the InputStreamReader object.
The problem is that the InputStreamReader's read() method returns ALWAYS ONLY one character. Then the TelnetInputAvailable() method has to be called for a new character to be fetched.
The same happens also if i just use an InputStream and get bytes. Only one byte i get every time.
Do you know how can i get more than one character?