You Are Here:

Community: Developer Discussion Boards

#1 Old Best practice-resources in jar or file system? - 2008-05-22, 21:26

Join Date: Mar 2004
Posts: 4
cellnite
Offline
Registered User
Hello,

My resources total about 310K, some images, but mostly data. The code compiled is about 100 or so KB. The jar takes ages to load on the mobile (N95).

What is the best practice in this case? Get the user to be patient...or get them to copy the resource file to a directory on the device....

Since the application is targeted to your average Joe, I would like comments what would be be suitable...

Thank-you
cellnite
Reply With Quote

#2 Old Re: Best practice-resources in jar or file system? - 2008-05-23, 00:14

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Hmmm could you be more spcific in here?

How long is "ages"? What do you mean by "load" (downloading, starting the app, what?)

Hartti
Reply With Quote

#3 Old Re: Best practice-resources in jar or file system? - 2008-05-23, 10:46

Join Date: Mar 2004
Posts: 4
cellnite
Offline
Registered User
The jar file, after running it through proguard, and kjar has a size of 402KB. Upon clicking the icon in the Applications menu on the N95, it takes 9 seconds for the first screen to load (splash screen). Before the splash screen is shown i load 6 png files of which the largest one is 370 bytes.

I would think part of the 9secs is the phone loading the jar into memory, and by reducing its size, the load would be faster. Cause it seems to a user, that when you click on an icon, nothing happens.

thanks
c
Reply With Quote

#4 Old Re: Best practice-resources in jar or file system? - 2008-05-23, 19:56

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Gotcha.

There is some delay in opening a MIDlet, when you compare it to native apps. But here I talk about up to 1 second max.

Would it be possible for you to first show the splashscreen and when the splash is shown, load the other png files?
Now it seems that you are doing something time consuming before you are displaying anything...

Hartti
Reply With Quote

#5 Old Re: Best practice-resources in jar or file system? - 2008-05-23, 21:05

Join Date: Mar 2004
Posts: 4
cellnite
Offline
Registered User
Yes:) ..i moved them to after the splash screen is loaded once i sent the forum email. I saved about a second from the loading time. So, the question remains is the size of the jar file, related to loading time...and if so...how "smart" is the user these days. Are they capable of moving files to other directories etc...or do i take the risk and let them wonder if something has happened once clicking the icon.

thanks for your discussion,
c
Reply With Quote

#6 Old Re: Best practice-resources in jar or file system? - 2008-05-24, 00:22

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
so you are now down to 8 seconds?
Something is not right here, what else are you doing before showing the splash screen?

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
S60 2nd edition FP3 SDK reports error in jar file entry iwmonkey Mobile Java Tools & SDKs 11 2008-05-23 22:14
extracting midlet jar file sumanbera Mobile Java General 20 2007-09-29 09:34
Help needed with a 3gp file... joedoe_1981 Streaming and Video 0 2007-07-18 19:58
N80 Jar File limitation thunder7553 General Discussion 2 2006-09-29 03:35
can we get the source file from jar file.. bb_sathya Mobile Java General 6 2005-12-28 14:14

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia