ExampleApp/src/com/altinn/apps/fisher/utils/Utils.java
/**
	 * A utility function to check null/empty behavior of a String
	 * @param text
	 * @return
	 */
A utility function to check null/empty behavior of a String
@param text
@return
A utility function to check null / empty behavior of a String @param text @return
public static boolean isNullorEmpty(String text){
		if(text == null || text.trim().length() == 0 || text.trim().equalsIgnoreCase("null")){
			return true;
		}
		return false;
	}
public static boolean isNullorEmpty ( String text ) { if ( text == null || text . trim ( ) . length ( ) == 0 || text . trim ( ) . equalsIgnoreCase ( "null" ) ) { return true ; } return false ; }
A utility function to check null/empty behavior of a String
 @param text
 @return
A utility function to check null / empty behavior of a String @param text @return