• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is this possible...?

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

I am developing game for nokia series 60. I have two files "a.jad" and "a.jar". i am bundling some of png file in "a.jar" at first download.
Now i want that user can download new set images when he/she want ...and that i can use in my game as new set of image.
how it is possible . is there any other way of doing this.
pls tell me
thanx.
wating for reply.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suppose you could keep a "default image bundle" in the .jar file, and a "custom image bundle" stored into RMS. Then the application would read the image files from RMS/jar based on a user preference.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse,
Thanx for reply. i agree with the idea but in my case i want that user will download latest images from net (via GPRS etc..)and that i will use in my app. until or or unless he not download newone..
please guide me and if i am wrong then tell me how to do?
thanx
wating for reply
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you always want to download latest images.
- Don't include any version of these images in the .jar file
- Use some kind of ImageManager class with a getImage(<name>) method that loads the latest images from the web server upon startup. How this should be implemented, I'm not sure. One way could be to use a static initialization block in the ImageManager class. Another way could be to defer the downloading to the getImage() method so that it first checks whether the user has already downloaded the images, and if not, downloads the images before returning the image file.
[ August 29, 2003: Message edited by: Lasse Koskela ]
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Lasse,

Thanx alot for your such a nice support.
let me do some work on this. I will get back to you.
if possible give ur mail ID so i can contact you there.
thanx.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd strongly suggest you to continue the discussion in the forums instead of private messages because
1) The bartenders' time would be better spent answering each question only once instead of answering to the same questions separately via private messages/email
2) The person asking a question in public will get a lot more views on the subject instead of having to trust that the bartender knows "The Answer"
3) Other 'ranchers benefit from having someone solved their problem in public
If you still feel that the questions are really private in nature, you can contact me with a private message or via the JavaRanch contact page.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse,
It's ok. nothing private. You are perfectly right.
Thanx alot
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this what you want ?
http://www.corej2me.com/DeveloperResources/sourcecode/networking/downloadPng/index.shtml
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi urarom,

Thanx alot for your response...ya this is what exactly i want.

thanx again
bye
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic