aspose file tools*
The moose likes Java Micro Edition and the fly likes Is this possible...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Is this possible...?" Watch "Is this possible...?" New topic
Author

Is this possible...?

vishwas bhatt
Ranch Hand

Joined: Nov 30, 2000
Posts: 129
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.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
vishwas bhatt
Ranch Hand

Joined: Nov 30, 2000
Posts: 129
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
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Nov 30, 2000
Posts: 129
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
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Nov 30, 2000
Posts: 129
Hi Lasse,
It's ok. nothing private. You are perfectly right.
Thanx alot
urarom sogard
Greenhorn

Joined: Sep 10, 2002
Posts: 21
Is this what you want ?
http://www.corej2me.com/DeveloperResources/sourcecode/networking/downloadPng/index.shtml
vishwas bhatt
Ranch Hand

Joined: Nov 30, 2000
Posts: 129
Hi urarom,

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

thanx again
bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this possible...?