rest - android asynchronous interaction with server -


i'm developing client-server android application, makes use of rest protocol.

basically upload picture server first , process on server , update status of picture in android application (from new processed);

so user needs press "refresh" receive renewed list of processed pictures server...

i'm surely don't it...

is possible have sort of callback after server has completed processing? think i'm looking like... ajax, in other words, server needs trigger event of updating list, not users "refresh" button pressing. don't wan't ask server every ~2 seconds after sending picture if it's been processed or not ... think there must more elegant solution.

what correct way implement such functionality?

i can change both server , android parts of application

thank in advance!

this google cloud message for, server notifies device or devices there new stuff server. phone makes call server new information , process it

another option using xmpp, take @ asmack


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -