Hi, I started to develop some games, and my first deployment on a real device (Nokia 3650/firmware: 2.54) doesn't works.
I cut and paste the "Your First Micro Java Game (http://www.onjava.com/pub/a/onjava/2.../javagame.html)", tested on latest emulators (Nokia NDS and J2ME WTK 2.0), works well. When transfered to 3650, launch the MIDlet, a blank screen is showed and got back to Applications folder. An interesting thing is if I change the getWidth/getHeight in SpaceCanvas by 176 and 144 (canvas size) all works well. I don't think is a Canvas bug, but this problem are taking hard for me to solve it.
The code is really simple but this problem is shaking my head. I think JAD, manifest and .java files are fine. Below is the code:
I see you are using an MIDP 2.0 development environment. I have had problems with getWidth() when compiling apps with the WTK 2.0 and trying to run them on a MIDP 1.0 phone. Try compiling the application with WTK1.0.4 or one of the Nokia SDKs.
(As far as I can remember there shouldn't be a problem using those methods in the contructor).