Created
December 2, 2015 02:34
-
-
Save fnzainal/7bbdecc31cc5d2486c61 to your computer and use it in GitHub Desktop.
example using Timer android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timer timer = new Timer(); | |
@Override | |
public void onCreate() | |
{ | |
timer.scheduleAtFixedRate(new TimerTask() { | |
@Override | |
public void run() { | |
CallMethod(); | |
} | |
}, 0, 24 * 60 * 60 * 1000);//repeat every 24 Hours | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment