Skip to content
Advertisement

Edit Text to long variable issue?

I am working on a timer app, I have an EditText for taking an input number and based on my radio button selected, multiply the input to be equal to long millisInFuture for the CountDownTimer class. but apparently there is something wrong with parsing my EditText as a long. here is the part for RadioGroup:

JavaScript

Here is part of the error it gaves me?

JavaScript

Advertisement

Answer

check your editText have proper value before parse long

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement