Android Question Sensor TYPE_LIGHT

Isac

Active Member
Licensed User
Longtime User
I do not understand why not detect that the sensor does not exist.
I tried to use it on a mobile phone without light sensor but warns me.


B4X:
     p.Initialize(p.TYPE_LIGHT)
     a.StartListening("a")
    If p.StartListening("p") = False Then
    Msgbox("Your device does not have the sensor","Warning")
    Return
    End If

thank you all
 
Top