FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
sensor
sensor
Iniciado por FS Fast, 14,nov. 2018 12:11 - 2 respuestas
Conéctese…
FS Fast
#1
Publicado el 14,noviembre 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?
Informar
0
0
vvido
#2
Miembro registrado
94 mensajes
Publicado el 14,noviembre 2018 - 14:08
Some hints can be found on
https://stackoverflow.com/questions/11429614/android-camera-get-light-sensor-value
Informar
0
0
FS Fast
#3
Publicado el 14,noviembre 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)
Informar
0
0
→ Volver a WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto