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

3 thoughts on “Load a properties file on a BlackBerry RIM application”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s