Pause a TimerTask - is there a reason for this?

I use a TimerTask to update the screen of a meter. It updates all the few ms so it consumes a small amount of power. If the screen is not visible, it still sucks dry battery fast enough...

Other than deleting and it rescheduling in every sense, is there a better model for a break it?

What is the most effective approach to solve this type of problem?

Thank you

//////// Update Display Task
_updateDisplay = new TimerTask() {
    public void run() {
        synchronized(MyApplication.getEventLock()) {
            timerRunning.setText(SWUtil.myFormat(countKeeper1.getTime()));
            timerCountdown.setText(SWUtil.myFormat(countKeeper1.getCountTime()));
        }
    }
};
_timer = new Timer();
_timer.schedule(_updateDisplay, 25, 25);

I see now. You must re-create the TimerTask every time. Is not supposed. Seems inefficient. But if that's what I have to do...

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • export addresses from outlook 2002

    We strive to export files of microsoft outlook 2002. What we want to do is to format your computer and have it repaired without having to manually return to enter all e-mail contacts during his return. It would be appreciated if someone could tell us

  • device base system missing - pci\ven_15ad & dev_0740 & subsys_074015ad & rev_10\3 & 61aaa01 & 0 & 3f

    I am using Windows XP Pro and all of a sudden I get a message: lack of Base system device. Using the technique given to another user who had a similar problem, I determined that the device ID is: pci\ven_15ad & dev_0740 & subsys_074015ad & rev_10\3 &

  • Laserjet 4000n station XP sharing

    I have an old machine running Windows XP that hosts a printer Laserjet 4000n.  I wish I could share the printer on my home LAN, but the machines running OS later can not load a driver for him.  See the printer, they may not attach.  Right now I'm try

  • Timeout VPN

    My vpn seems to fail after 19:00 when everyone in the office went home but in the morning when they come into the vpn connects and starts working again! is there a way to keep the alove of connection between the 2 sites!

  • Need to add Windows XP to Windows 7 so I can play my games that work on XP

    I use Windows 7 Professional. I would add Windows XP as a dual boot, because I have a lot of XP programs; especially the games I want to play. However, the instructions say to install the old version first. I don't want to uninstall Windows 7 first;