Android Question ps.Initialize (ps.TYPE_LIGHT)

Isac

Active Member
Licensed User
Longtime User
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.



B4X:
 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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…