Isac Active Member Licensed User Longtime User Jan 7, 2015 #1 I'm using the ps.Initialize (ps.TYPE_LIGHT) but I noticed on other phones the value is different. because it works well on s3 and s2 no? In s2 read mutiple 10,100,1000,10000 If you load another program taken from playstore on s2 read right values. Code: Copy ps.Initialize(ps.TYPE_LIGHT) ------------------- ------------------- Sub ps_SensorChanged (Values() As Float) Dim N As Int N=NumberFormat2(Values(0),0,2,2,False) Log(N) Label1.Text="light= "&N&" lux" End Sub thank you
I'm using the ps.Initialize (ps.TYPE_LIGHT) but I noticed on other phones the value is different. because it works well on s3 and s2 no? In s2 read mutiple 10,100,1000,10000 If you load another program taken from playstore on s2 read right values. Code: Copy ps.Initialize(ps.TYPE_LIGHT) ------------------- ------------------- Sub ps_SensorChanged (Values() As Float) Dim N As Int N=NumberFormat2(Values(0),0,2,2,False) Log(N) Label1.Text="light= "&N&" lux" End Sub thank you
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2015 #2 The values come directly from the native API. There isn't anything you can do to get more accurate values. Upvote 0
The values come directly from the native API. There isn't anything you can do to get more accurate values.
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2015 #3 Note that your code is wrong. It should be Dim N As String. Upvote 0