I'm looking for some suggestions to essentially do an "ajax long poll" but with native android components. There will be no HTML in my app so using something like SignalR is out of the question. I really don't want to go the sockets route unless I absolutely have to, but I want something that works as close to the same way as possible.
The server will return a simple web service (JSON) response.
I'm not entirely opposed to polling on an interval if you think that is what's best. Basically, I just want to be able to receive "updates" from the server as they occur in as close to real-time as possible.
Any suggestions/samples to accomplish this natively with android would be greatly appreciated.
TIA
Either check out WebSockets for near realtime server communication or GCM for server push notifications.