I am getting errors in runtime after compilation in a strange situation...
I have a few views created by code, and positioned relative to other views.
I then try to manipulate some props using canvas.
With screen on, the app works fine, BUT, with screen OFF, it compiles and errors with the canvas complaining about the width and height of the targeted view having to be greater than zero.
To trouble shoot I placed a simple log statement
and to my surprise, screen ON gives positive values, but screen OFF gives NEGATIVE values... Height returns always positive values.
I am connecting my device by usb cable
I have a few views created by code, and positioned relative to other views.
I then try to manipulate some props using canvas.
With screen on, the app works fine, BUT, with screen OFF, it compiles and errors with the canvas complaining about the width and height of the targeted view having to be greater than zero.
To trouble shoot I placed a simple log statement
B4X:
Log(Props1Header.Width)
and to my surprise, screen ON gives positive values, but screen OFF gives NEGATIVE values... Height returns always positive values.
I am connecting my device by usb cable