I'm developing a client-server android application, which makes use of REST protocol.
Basically I upload a picture to the server first and then process it on a server and then update the status of this picture in android application (from new to processed);
so the user needs to press "refresh" to receive the renewed list of processed pictures from the server...
I'm surely don't like it...
is it possible to have some sort of callback after the server has completed processing? I think i'm looking for somewhat like... ajax, in other words, the server needs to trigger the event of updating the list, not users "refresh" button pressing. I also don't wan't to ask server every ~2 seconds after sending the picture if it's been processed or not ... i think there must be more elegant solution.
What is the correct way to implement such a functionality?
I can change both server and android parts of an application
thank you in advance!