A
A
Andrey M2014-08-13 19:20:04
Android
Andrey M, 2014-08-13 19:20:04

How to implement long polling connection in android?

There is a very simple task: to establish a long-polling connection (POST) with the server, and wait until it responds with some JSON.
The connection should live only as long as the fragment in which it is running is alive.
Google sent me to SignalR , but either my hands are crooked, or I don’t understand something, but somehow everything is very complicated there.
And I would like some simple client and listener to them. Can anyone come across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew M, 2015-09-01
@Collosteam

A year later, I again stumbled upon a similar problem, an attempt to find a solution in Russian led me to my own question. Last time, the simplest solution was android-async-http . Apparently the project is still alive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question