Category Archives: Mobile development

My posts on BlackBerry RIM Java development.

Load a properties file on a BlackBerry RIM application

“Properties” class does not exist on the BlackBerry Java API. Find here an implementation of this class for your RIM applications.

Usage example:

   Class clazz = Class.forName(this.getClass().getName());
   InputStream stream = classs.getResourceAsStream("/file.properties");
   Properties properties = new Properties();
   properties.load(stream);
   // some code
   properties.getProperties();

Download link Properties.java.

Advertisements