Hi it seems to me that my program freezes at some point in a thread... i don't know where it is stuck in the code as its very large and complex.... so what i want is that when it frzzes the program i should some how recover from this thread. i mean start executing it again in Nokia J2ME for 7650.


this is written in the startApp()

frameTimer = new Timer();
frameTimer.schedule(new AnimationTask(), 1,31);

and this is the class. Screen is a canvas and this is what is executing the whole program. some where in the function the thread freezes. and i want to recover and restart this thread..

class AnimationTask extends TimerTask {
public AnimationTask() {

public void run()