开发者

Android service not executing additional methods

开发者 https://www.devze.com 2023-03-29 13:01 出处:网络
For some reasoninthe TimerTask it is not executing the S开发者_开发百科etSettings method I created. The timer continues to execute the loggingand the notification method but nothing else

For some reasoninthe TimerTask it is not executing the S开发者_开发百科etSettings method I created. The timer continues to execute the loggingand the notification method but nothing else

public class Notification extends Service {
 private final long mDelay = 0;
 private final long mPeriod = 5000;
 private final String LOGTAG = "test";
 private Timer mTimer;
 private class LogTask extends TimerTask {
      public void run() {
          Log.i("test","startedfdf");
          dbFunctions dbfunct = new dbFunctions();
          dbfunct.Notifications();
          dbfunct.setSetting("LastNotifCheck", "now!");
      }
     }
0

精彩评论

暂无评论...
验证码 换一张
取 消