Home of www.RoboHobby.com Java robotics project
Bulk Emailer program
Bulk Emailer - Free mass mailer program.

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




www.RoboHobby.com
Home of www.RoboHobby.com
Java robotics project


Bulk Emailer program
Bulk Emailer - Free mass mailer program.

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



www.RoboHobby.com
/*
 * 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() {

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

            callBacks.robotMIDlet.setTimerInfo( infoStr );

            if (stopTimer)
            {
                cancel();
            }
            else
            {
                timerCircle++;
            }

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

    }

}






Google
 



Contact us:
       If you have any questions,   please, send me a letter :       
Also you can use our forum - www.RoboHobby.com/forum
 

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
------------------

ICQ: 358189820
Current Status:Send an ICQ message