Okay, let me rephrase this:
I'm not trying to do anything illegal. I'm simply trying to load a text file (containing configuration options) from a DIFFERENT cod file than the one from my project.
I already tried
Code:
String filename = new String("cod://appNameres/appconfig.cfg");
InputStream is = file.getClass().getResourceAsStream(file);
and it doesn't work. Where the resource cod is "appNameres.cod"
I saw some pointers on using a class to do this but HOW can I call on a class in a different cod file?
For example:
Code:
class ResLoader
{
public static InputStream loadResource(String filename)
{
InputStream is = file.getClass().getResourceAsStream(filename);
return is;
}
}
I'm a noob in terms of RIM BB API (i did use J2ME for quite a while).