Answer the question
In order to leave comments, you need to log in
How to implement TCP communication with Android?
I'm trying to implement a relatively simple network application for Android. It is necessary to exchange large JSONs with the server in the background (in a separate Service), using the "Long Polling" technology. I tried various implementations of the TCP client and ran into problems of a different nature: either the socket is blocked until the end of the "listening" and it is not possible to transfer the received data "on the fly", or the data does not come all at once (the buffer is too small, etc.). Prompt known (actual for 2015) solutions, articles on these issues or books on the topic "Architecture of network applications in Android" and the like.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question