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
Post a Comment