How to Create a new Timer
** Recommended to use a Handler instead **http://www.mopri.de/2010/timertask-bad-do-it-the-android-way-use-a-handler/
1. Declare and Initialize a Timer named myTimer and set to null.
2. In the MainActivity.java file, add the following line of code to the onCreate method.
myTimer = new Timer();
3. Compile and run!
Next Recommended Article:
Related Articles:
Resources:
developer.android.com/reference/java/util/Timer.html
http://steve.odyfamily.com/?p=12
android.okhelp.cz/timer-simple-timertask-java-android-example/
http://www.mopri.de/2010/timertask-bad-do-it-the-android-way-use-a-handler/