code: public static long getNumberLong(CharSequence string) {
  		long number = 0l;
  		try {
  			if (!isEmptyString(string)) {
  				if (TextUtils.isDigitsOnly(string)) {
  
  					number = Long.parseLong(string.toString());
  				}
  			}
  		} catch (NumberFormatException e) {
  			e.printStackTrace();
  		}
  		return number;
  	}
docs: Extract number from string, failsafe. If the string is not a proper number it will always return 0l;
  
  @param string
  : String that should be converted into a number
  
  @return : 0l if conversion to number is failed anyhow, otherwise converted number is returned