J
J
J3FALL2015-11-24 15:53:46
Android
J3FALL, 2015-11-24 15:53:46

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

1 answer(s)
V
Vasilij Aleksashin, 2015-12-03
@TerraMorf

android-er.blogspot.com/search?q=socket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question