Android Open Source - owncloud-gallery Properties






From Project

Back to project page owncloud-gallery.

License

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.

Java Source Code

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));
    }
  }
}




Java Source Code List

library.OwncloudHelper.java
library.Properties.java
library.TrustModifier.java
library.VerifyHostnameCallable.java
library.VerifyHostnameResult.java
md.steuer.mobile.owncloudgallery.MainActivity.java
md.steuer.mobile.owncloudgallery.OwncloudGallery.java
md.steuer.mobile.owncloudgallery.viewcontroller.GalleryViewController.java
md.steuer.mobile.owncloudgallery.viewcontroller.HelpViewController.java
md.steuer.mobile.owncloudgallery.viewcontroller.LoginViewController.java
md.steuer.mobile.utils.DebugUtils.java
md.steuer.mobile.utils.TextFieldKeyboardDelegate.java