Started thread in elsewhere as I was thinking it must be me, b4a newbie... but instead it seems b4a has some internal bug when converting Long to string.
-----
Try this:
Dim expiryTime As Long
Dim testString As String
expiryTime = 14400000
Log("expiryTime: " & expiryTime)
Label1.Text = expiryTime
testString = expiryTime
Log("testString1: " & testString)
testString = Label1.Text
Log("testString2: " & testString)
And you get:
expiryTime: 1.44E7
testString1: 1.44E7
testString2: 14400000
------------------------
And digging from main.java I found:
_teststring = BA.NumberToString(_expirytime);
That seems to work with Int but not with Long (uses wrong format with Long?)
-----
Try this:
Dim expiryTime As Long
Dim testString As String
expiryTime = 14400000
Log("expiryTime: " & expiryTime)
Label1.Text = expiryTime
testString = expiryTime
Log("testString1: " & testString)
testString = Label1.Text
Log("testString2: " & testString)
And you get:
expiryTime: 1.44E7
testString1: 1.44E7
testString2: 14400000
------------------------
And digging from main.java I found:
_teststring = BA.NumberToString(_expirytime);
That seems to work with Int but not with Long (uses wrong format with Long?)