I cannot guess why an error is thrown regarding a String operation.
Before I was putting together a string and an object Tag. Thought that was an error to a internal reference from the tag, but even by joining two strings, keeps throwing the error.
For example is this piece of code:
Before I was putting together a string and an object Tag. Thought that was an error to a internal reference from the tag, but even by joining two strings, keeps throwing the error.
For example is this piece of code:
B4X:
Dim data As String="FLAG=OBJECT&ACTION=CREATE&idShift=" & shift.Get("idShift")
Log(data)
If canContinue And altitude.Tag<0 Then
CallSub2(Main, "setToast", CreateMap("msg":"Debe seleccionar la altura de remolque", "verticalPosition":20, "colorBg": col.clrWarning, "colorText":Colors.White))
canContinue=False
Else
data=data & ("&altitude=" & "1450") 'altitude.Tag) '<-- THIS IS LINE 1345 FROM THE LOGS BELLOW
End If
B4X:
FLAG=OBJECT&ACTION=CREATE&idShift=2024680
Error occurred on line: 1345 (userShiftsLogs)
java.lang.NumberFormatException: For input string: "java.lang.Object@4973580"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at anywheresoftware.b4a.debug.RDebugUtils.numberCast(RDebugUtils.java:63)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1082)
at anywheresoftware.b4a.keywords.Common.CallSubNew(Common.java:1029)
at cl.planeadores.clsbutton._btn2_click(clsbutton.java:318)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:7509)
at android.view.View.performClickInternal(View.java:7486)
at android.view.View.access$3600(View.java:841)
at android.view.View$PerformClick.run(View.java:28710)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8056)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)