Hi!
So you might want to sprinkle more
System.out.println() statements through your code, to find out what's going wrong and where. This is sometimes known as "debugging by printf".
Also make sure that the JDE's debugger is attached and active -
System.out.println() only prints to a debugger window, not to the device's screen or event log. Look up the API for EventLogger if you want to make use of the device's event log facility to see log statements on a real device (real devices ignore
System.out.println() but you can attach a JDE's debugger to a real device via a USB cable and the debugger will show those statements).
Be careful:
Phone.addPhoneListener() will add another listener every time you execute your code - generally, you only want to do this once. Each listener will be executed - if you launch your application twice, two listeners get added and both will get executed when the Phone class runs through its list of listeners for each Phone event.
Cheers,
karl