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!");
}
}
精彩评论