how to know if the data is clicked or enabled in android -


i'm trying implement location tracker app, , 1 of requirements send/check location every time data available.

right have application running on background , set timer every after hour check if data available, believe not appropriate way.

it's this:

new countdowntimer(30000, 1000){      public void ontick(long millisuntilfinished) {         mtextfield.settext("seconds remaining: " + millisuntilfinished / 1000);     }      public void onfinish() {         if(dataisenabled())         {             dothis();         }         else         {             dothis();         }     }.start(); 

is there way know if data button clicked? thank you


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -