android - Update the view in the MainActivity immediately from the server -


i createing checkbox list arraylist getting server, programmatically.the checkbox list being created facing problem value change in mysql table every minute. regarding, have update values of checkboxes list in mainactivity. there way in android update values (gettext) of checkboxes in mainactivity ajax in javascript?

what trying achieve, rebuild check box list in mainactivity when value of tables's record changes immediately. approach can use achieve or best can achieve, remove chechbox list element xml file , send new request server periodically?

i appreciate help.

try use code in onpostexecute()

new handler().postdelayed(new runnable() {         @override         public void run() {             new myasynctask().execute();         }     }, 5*60*1000); // gap of 5 minutes 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -