[Solved] Java ME help displaying calendar canvas from Nokia tutorial


…it just says it’s running in the background. I guess I’m not initializing it properly.

Without seeing your code it’s hard to tell for sure but assuming that you did not introduce errors copying tutorial code, the most likely reason for the behavior like you describe is that you didn’t invoke Display.setCurrent. This would indeed qualify as not initializing it properly.

In the class that extends MIDlet, make sure that startApp invokes setCurrent, like as below:

public void startApp() {
    Display.getDisplay(this).setCurrent(
            new CalendarCanvas(this));
}

Note in code snippet above, CalendarCanvas is assumed to be as per tutorial you refer to:

CalendarCanvas.java: sample usage of CalendarWidget within a Canvas…

0

solved Java ME help displaying calendar canvas from Nokia tutorial