tags:

views:

188

answers:

2

Hello everybody,

How can one load custom (not an image, nor a sound file) resource file from /res within .jar using MIDP 2.0?

Thanks in advance.

A: 

I'm working with MIDP 2.1, but I hope this is in 2.0 too.

Class.getResource(path_to_resource) should give you an InputStream to the file.

jschultz
A: 

getResourceAsStream("/res/yourresource");

kgutteridge