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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -