[android-developers] Why does Long.decode fail?

2011-08-10 Thread RLScott
I am trying to convert a string of 16 hex digits to a 64-bit Long, but there is a run-time exception for negative values: Long a = Long.decode(0x3774d56d682e549c); //..works just fine Long a = Long.decode(0x9774d56d682e549c); //..crashes with a run- time exception Apparently you can't

Re: [android-developers] Why does Long.decode fail?

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 4:29 PM, RLScott fixthatpi...@yahoo.com wrote: I am trying to convert a string of 16 hex digits to a 64-bit Long, but there is a run-time exception for negative values: Long a = Long.decode(0x3774d56d682e549c); //..works just fine Long a =