Back to project page owncloud-gallery.
The source code is released under:
GNU General Public License
If you think the Android project owncloud-gallery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package library; /*from ww w.j a v a 2 s.c o m*/ import java.util.ResourceBundle; import javax.management.openmbean.InvalidKeyException; public class Properties { private static ResourceBundle MSG = ResourceBundle.getBundle("messages"); private static ResourceBundle APP = ResourceBundle.getBundle("application"); public static String getString(String key) { if(MSG.containsKey(key)) { return MSG.getString(key); } else { return key; } } public static Integer getAppInt(String key) { if(APP.containsKey(key)) { return Integer.parseInt(APP.getString(key)); } else { throw new InvalidKeyException(String.format("%s not found in app settings.", key)); } } }