thanks for the help
here is the code i'm using
Quote:
try
{
ApplicationManager appManager = ApplicationManager.getApplicationManager();
ApplicationDescriptor template = ApplicationDescriptor.currentApplicationDescriptor ();
String[] args = { "restart" };
ApplicationDescriptor descriptor = new ApplicationDescriptor(template, args);
// have application restart after 10 sec
Date _date = new Date();
long restartTime = _date.getTime() + (1000 * 10);
_date = null;
appManager.scheduleApplication(descriptor, restartTime, true);
}catch (Exception e) { }
System.exit(0);
|
however, now i have the problem where i can have two instances of the program running. if my application restarts through the scheduleApplication, i am able to launch another instance of the application.