Re: [android-developers] Bad performance in communication over TCP-Socket

2011-10-04 Thread Miguel Morales
That seems overly complicated, what are you trying to do? I *think* your bottle neck is that you're reading 1 byte at a time. You need to read more, if you simply expand your buffer your code may work. The way I've done is is to have a separate thread that's strictly for TCP communication. There

[android-developers] Bad performance in communication over TCP-Socket

2011-10-04 Thread simon
Hi, in my application I need to send and receive data bytewise over TCP. At the beginning of development I tried to implement that functionality as resource-efficient as possible. So I finally decided to use messages (android.os.Message) to cyclically initiate reading bytes from socket. After esta

[android-developers] Bad performance in communication over TCP-Socket

2011-10-04 Thread simon
Hi, in my application I need to send and receive data bytewise over TCP. At the beginning of development I tried to implement that functionality as resource-efficient as possible. So I finally decided to use Messages (android.os.Message) to cyclically initiate reading bytes from socket. After esta