Question

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

Was it helpful?

Solution

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.

OTHER TIPS

getResourceAsStream("/res/yourresource");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top