FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
sensor
sensor
Débuté par FS Fast, 14 nov. 2018 12:11 - 2 réponses
Connectez-vous…
FS Fast
#1
Posté le 14 novembre 2018 - 12:11
HI
I was wondering is it possible to use the lightsensor(smartphone)(normaly used to measure the light and dim the screen acordingly)
and return the value so it can be used as a trigger?
if so how?
what command do i need?
Signaler
0
0
vvido
#2
Membre enregistré
94 messages
Posté le 14 novembre 2018 - 14:08
Some hints can be found on
https://stackoverflow.com/questions/11429614/android-camera-get-light-sensor-value
Signaler
0
0
FS Fast
#3
Posté le 14 novembre 2018 - 15:47
i d like to use the ambiant light sensor that is build in.Trying to get it from camera bye taking a pic then calculating lux based on that would be a huge detour (and would put strain on the batery specialy if u like to check lets say every 10min).
so i went for trying to acces the sensor itself.However the code found is not recognised bye windev.
so i fal in repeating myself what command can i use to acces ambiant light sensor ?
B125 is string
B125 = Sensor.TYPE_LIGHT
trace(B125)
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte