Results of test and result from Manufacturer.
We have tested the same application using android studio without problems on the same hardware.
There were no other issues the manufacturer knew of with other applications on their hardware.
The cpu and memory test are ok on all machines. (i received a hardware test and burnin application)
Maybe their is a format compatibility problem between b4a and their hardware.
The problem occurs when you convert a string to an integer value. (as shown before)
The problem is gone when you use long variables instead of integer.
The problem is gone when you first convert from a string to an integer value and then redefine the value to a numeric value using numberformat. (code below)
Could it be that , when you convert a string value to an integer value it is stored in an other format than a real numeric integer? (confusing a garbage collector?)
When i redefine the converted integer value from string to a 'real' integer value before the sub, it works, i think the format must be different.
Sub problem
Dim myvar As Int
Dim g As String
g = "01"
myvar = g.SubString2(0,2)
myvar = NumberFormat2(myvar,1,0,0,False) '<=== redifining the integer value after string converting solves the problem
Log("G string value = "&g)
Log("Local int myvar = "&myvar )
.....
'_myvar = (int)(Double.parseDouble(_g.substring((int) (0),(int) (2))));
'_myvar = (int)(Double.parseDouble(anywheresoftware.b4a.keywords.Common.NumberFormat2(_myvar,(int) (1),(int) (0),(int) <== '(0),anywheresoftware.b4a.keywords.Common.False)));