×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    4

    Best practice-resources in jar or file system?

    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

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Best practice-resources in jar or file system?

    Hmmm could you be more spcific in here?

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

    Hartti

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    4

    Re: Best practice-resources in jar or file system?

    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

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Best practice-resources in jar or file system?

    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

  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    4

    Re: Best practice-resources in jar or file system?

    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

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Best practice-resources in jar or file system?

    so you are now down to 8 seconds?
    Something is not right here, what else are you doing before showing the splash screen?

    Hartti

Similar Threads

  1. S60 2nd edition FP3 SDK reports error in jar file entry
    By iwmonkey in forum Mobile Java Tools & SDKs
    Replies: 12
    Last Post: 2010-03-11, 01:39
  2. extracting midlet jar file
    By sumanbera in forum Mobile Java General
    Replies: 20
    Last Post: 2007-09-29, 08:34
  3. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  4. N80 Jar File limitation
    By thunder7553 in forum General Development Questions
    Replies: 2
    Last Post: 2006-09-29, 02:35
  5. can we get the source file from jar file..
    By bb_sathya in forum Mobile Java General
    Replies: 6
    Last Post: 2005-12-28, 13:14

Posting Permissions

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