Hi all,
I'm back with my problem described here: https://www.b4x.com/android/forum/threads/1dip-calculation.98422/
It happened again after some time. As I mentioned it's very rare.
This time I managed to catch this output for logs:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
result:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
how is it possible that GetDeviceLayoutValues returns correct values and 1dip is badly calculated?
PS. It happens on: Galaxy S7(Android 8), Galaxy A8(Android 8) and galaxy J5(Android 7), so it doesn't weem to be system or phone related problem.
			
			I'm back with my problem described here: https://www.b4x.com/android/forum/threads/1dip-calculation.98422/
It happened again after some time. As I mentioned it's very rare.
This time I managed to catch this output for logs:
			
				B4X:
			
		
		
		Sub Activity_Create(FirstTime As Boolean)
  
    Log(Activity.Height&" x "&Activity.Width)
    Log("1dip "&1dip)
    Log(GetDeviceLayoutValues)
    Log(GetDeviceLayoutValues.ApproximateScreenSize)
	result:
			
				B4X:
			
		
		
		2560 x 1440
1dip 1
1440 x 2560, scale = 4.0 (640 dpi)
4.589389937671455
	how is it possible that GetDeviceLayoutValues returns correct values and 1dip is badly calculated?
PS. It happens on: Galaxy S7(Android 8), Galaxy A8(Android 8) and galaxy J5(Android 7), so it doesn't weem to be system or phone related problem.