11-16-2009 11:07 AM
I have a small program that should just start up my phone listener and then end. I know I am rusty on Java but why does it not end? Apart from that it works as I want. If I try to start it again it says "Middleman already running". Its not set as system or autostart
------------------
import net.rim.device.api.system.*;
public class Middleman extends Application
{
public static void main(String args[])
{
Middleman theApp = new Middleman();
theApp.enterEventDispatcher();
}
public Middleman()
{
try
{
System.out.println("Entering Middleman<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
int modHandle = CodeModuleManager.getModuleHandle("MonitorNotAuto"
ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHan
ApplicationManager.getApplicationManager().runAppl
} catch (ApplicationManagerException e)
{
System.out.println("Could not start MonitorNotAuto<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}
System.exit(0);
}
}
Solved! Go to Solution.
11-16-2009 03:00 PM
Fixed.
Not sure exactly what did it, I restructured it a bit and put the try block in a new routine