Android Question Invalid double: "" need help, and breakpoints too.

Bryan

Member
Licensed User
Longtime User
Is there an easy way to find out why I keep getting
java.lang.NumberFormatException: Invalid double: ""
in my log. I can't seem to trace it to anything. I've used break points in debugging and turning up with nothing. I set a break point on Activity_Create and get the error.
Well looking at using breakpoints and they seem odd as I can set a breakpoint and then it maybe pauses for a second or two and continues on running. It's like breakpoints don't work. Well at least not like other languages I program in. What is the reason for this? I just want to stop the code at certain points and then step through it. It continues on by itself.

Thanks,
Bryan

Ok, I found the reason for the invalid double. Also I think I know why my breakpoints are not working. I am running bluestacks emulator and the debugger can't connect properly to it. The invalid double was caused by the keyvaluestore class not working correctly with Booleans. It stores the Booleans I think as strings rather than actual true or false values.
 
Last edited:
Top