Hi,
I have created a splash screen.After displaying it for few seconds i want to display my midlet class where i have the list options.how can i show that screen?
Printable View
Hi,
I have created a splash screen.After displaying it for few seconds i want to display my midlet class where i have the list options.how can i show that screen?
change the set display of midlet to your menu screen If you paste your code here that will be more helpful to solve out
read MIDP documentation regarding Display and Displayables !!!
This is some very very basic stuff that you HAVE to know if you'd like to continue programming with J2ME...
better to make ur basics clear. Take some inspiration from the codes over net and read the documentation well.
Hi,
If Splash Screen and the next List options both are developed as seperate displayable classes like highlevel form or low level canvas, you can pass midlet control from on to another by setting the displayable object as currect displayable object by using display.setCurrent(new displayable);
Generally switching, displayable Canvas's at times gives flicker on the devices so, we should try to set only a one baseCanvas class as current displayable from the startapp of the midlet and then pass all other displayables screens on it only.
thanks,
~Amitabh
[QUOTE=rachelwiz;631829]Hi,
I have created a splash screen.After displaying it for few seconds i want to display my midlet class where i have the list options.how can i show that screen?[/QUOTE]
Hi may i know did you tried it even a bit? or any error message you are getting? does setcurrent does not work or your class is not of type displayable? i guess you are new to j2me
Hi Rachel,
Plesea have a look at the following wiki link it might be helpful
[url]http://wiki.forum.nokia.com/index.php/Design_Pattern_for_J2me_Canvas_based_applications[/url]
thanks,
~Amitabh
[url="http://www.impetus.com/mlabs"] Visit My Website[/url]
[QUOTE=im2amit;632224]Hi,
If Splash Screen and the next List options both are developed as seperate displayable classes like highlevel form or low level canvas, you can pass midlet control from on to another by setting the displayable object as currect displayable object by using display.setCurrent(new displayable);
Generally switching, displayable Canvas's at times gives flicker on the devices so, we should try to set only a one baseCanvas class as current displayable from the startapp of the midlet and then pass all other displayables screens on it only.
thanks,
~Amitabh[/QUOTE]
So u wanna say that we have to take only one canvas for painting to avoid flickering. But whats in that case if project have around 20 or more classes requirement. Taking single canvas surely avoid flickering but not a good approach as it pretend ambiguity in code structure. Lots of confusion may get arises.
I have solution this problem, which I published on Wiki... its a design pattern to solve this problem.
Please the link below:
[url]http://wiki.forum.nokia.com/index.php/Design_Pattern_for_J2me_Canvas_based_applications[/url]
thanks,
~Amitabh
[url="http://www.impetus.com/mlabs"] Visit My Website[/url]