This Example shows how to use of timer class. In this example we are using the Timer class to create the time of execution of application and the TimerTask class is used to create the counter of timer which is executed after 5000 ms as below:
private class TestTimerTask extends TimerTask{
|
in the above source code we execute the counter of the timer on the mobile window as follows:


TimerMIDlet.java
import java.util.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: J2ME Timer MIDlet Example
Post your Comment