participate


CLDC and MIDP - loading bar
<<   Back to Forum  |   Give us Feedback
This topic has 3 replies on 1 page.
viomart
Posts:123
Registered: 7/21/04
loading bar   
Mar 24, 2005 6:50 AM

 
Hola, my midlet is quite big : 100K so when teh user open teh application its takes like 12 seconds before they can see the main menu. Also sometime when the application is running and teh user choose to save some data, its takes too long. So I would like to in both (when starting teh application and while is saving or loading values) to show a bar or a message saying to teh user "Please wait " or something like that. I guess I have to use a separate thread. Do some one has some example code that I could use?
Thanks a lot / Violeta
 
deepspace
Posts:2,943
Registered: 2/2/05
Re: loading bar   
Mar 24, 2005 7:01 AM (reply 1 of 3)  (In reply to original post )

 
In the first case: you cannot do anything about the application beeing loaded. It just takes some time, and you cannot put anything on the screen to make it any more bearable ;). What you can do, it try to make your application more compact. try http://proguard.sourceforge.net/ . Works great for compacting, you even get obfuscation and it will make your software run a little faster.

In the seconds case: Make your own progress bar class, ther isn't one available (j2mepolish has one, but it is a complete gui framework, I don't you'll want to use that when you already have a 100 K application).
 
viomart
Posts:123
Registered: 7/21/04
Re: loading bar   
Mar 24, 2005 7:21 AM (reply 2 of 3)  (In reply to #1 )

 
thanks a lot. I will have a look to that web page you told me. Anyway I dont think I can do my code smaller, I took care writting the code as efficience as possible, Its just that my application is a Data Base application with miles miles and miles of items on it hehe , thats why the midlet is so big
Thanks again/ Violeta
 
deepspace
Posts:2,943
Registered: 2/2/05
Re: loading bar   
Mar 24, 2005 7:31 AM (reply 3 of 3)  (In reply to #2 )

 
Well, just try it. You'll be surpised ;) My app went from 51 to 22 KB
 
This topic has 3 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums