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.
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.
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
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 ]
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.
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.