开发者

Android service not executing additional methods

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜