Android Question Sensor in the chart

Isac

Active Member
Licensed User
Hi
what i want to do: I would like to enter the brightness sensor value in a chart.


B4X:
Dim ps As PhoneSensors
----------
----------
---------
ps.Initialize(ps.TYPE_LIGHT)
---------
----------
-------
Sub ps_SensorChanged (Values() As Float)
Dim N As String
N=NumberFormat2(Values(0),0,0,0,False)
Label1.Text="Luce= "&N&" lux"
Log(Label1.Text)
End Sub
I tried to use the graph of Johan Schoeman exactly b4aAndroidPlot_SensorOrientationChart
but I failed, which graphic should I use?
https://www.b4x.com/android/forum/t...h-data-passed-from-b4a-project.61521/#content
 
Top