Home of www.RoboHobby.com Java robotics project www.CubesAndCrosses.com
Train your logic skills in geometry
Create and delete one-color crosses
Play for free right in your browser!
Home-made CNC machine
Our new project -
How to make home-made CNC router
PICkit2 - Tutorials, Experiments
PICkit 2 - Small size USB programmer
from Microchip.
How to use it as a demo device for
USB programming in C language

Home of www.RoboHobby.com
Java robotics project

Portable Notebook Table
How to make Portable Notebook Table.
Do it yourself!

Java SE SWING JSR-296 Example
How to run background task in
JSR-296 SWING application
with 'busy animation' in the status bar.
Useful addition to Netbeans template.

Java ME Code Examples
Java ME Source code examples
for robotics projects

Run Java ME Code Examples
How to run our Java ME code examples
for robotics projects

 * J2ME code example. RobotTimerTask.
 * Part of www.RoboHobby.com Java robotics project.
 * www.RoboHobby.com

package com.robohobby.me;

 * www.RoboHobby.com
 * RobotTimerTask extends java.util.TimerTask
 * @author Oleg Lyubchenko
 * @Ads.Taglet
public class RobotTimerTask extends java.util.TimerTask
    CallBacks callBacks = CallBacks.getInstance();

    int timerCircle = 0;

    boolean stopTimer = false;
    public void doStop()
        stopTimer = true;

    public void run() {

            String infoStr = "timerCircle=" + timerCircle;
            System.out.println( "RobotTimerTask run() "+infoStr );

            callBacks.robotMIDlet.setTimerInfo( infoStr );

            if (stopTimer)

        catch( Exception e )
            String errorStr = "RobotTimerTask run() Error e=" + e;
            System.out.println( errorStr );
            callBacks.robotMIDlet.setTimerInfo( errorStr );




Contact us:

My Skype name is oleg_skp
Start Skype text chatStart Skype text chat
View Skype profileView Skype profile
Start Skype voice callStart Skype voice call
Add me to your Skype contact listAdd to Skype contact list
Leave voicemail using SkypeLeave voicemail using Skype
Send a file using SkypeSend a file using Skype
Note: To use these links
the Skype program should
be installed on your computer.
You can load it for free from
their official site:
Contact via Skypewww.Skype.com