I have following sample (link to ideone).
long lDurationMillis = 0; lDurationMillis = Long.parseLong(\"30000.1\"); System.out.print(\"Play Duration:\" + lD
The value 30000.1 is an invalid long value. You could parse the double value first:
30000.1
lDurationMillis = (long)Double.parseDouble("30000.1");