You need to get rid of the decimal places after the number. You cannot convert a number, represented as a String, which has a decimal place on it to a Long (at least not the way you are doing it)....