android - Getting Updates from Parse.com -


i trying top use parse.com app need information in phone update when changes in server. there way continuous checks or server let phone know when change has been done in server? checked documentation couldn't find anything

thanks

ifaik, can implement using scheduledexecutorservice.

by using scheduledexecutorservice, can update server every x second(s).

here example,

scheduledexecutorservice scheduletaskexecutor = executors.newscheduledthreadpool(5);  scheduletaskexecutor.scheduleatfixedrate(new runnable() {   public void run() {     //codes check update server   } }, 0, 1, timeunit.minutes); 

this check update server every 1 minute.

to stop checking update,

scheduletaskexecutor.shutdown(); 

hope helps :)


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -