Skip to main content

How do I Separate resources from application in JME

2 replies [Last post]
gutzy
Offline
Joined: 2007-03-06
Points: 0

Am am writing an application with several large resource files which I want to be able to transfer to my phone separatly from the application. This is so I can update the application without having to transfer the resource files. How is this done? How do I connect to a separate resource in my program. At the moment I use InputStream is =getClass().getResourceAsStream("MyResourceName"); where "MyResourceName" is the path to a resource packaged up with the application. I want to move this resource to a separate package. I presume I save my resources in a separate JAR file, but how do I access this with the limited classes available in JME java.io (FileInputStream is unavailable).

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
phil_bartholo
Offline
Joined: 2007-02-09
Points: 0

Hi there,

Take a look at the following:

http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode...

It details a way to do what I think you're trying to do by using the feature of MIDP2.0 that let's you install a MIDlet in multiple parts.

gutzy
Offline
Joined: 2007-03-06
Points: 0

Thanks. That looks most helpful. I'll give it a try.