FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
Windev Mobile 18 - Access to Camera light
Windev Mobile 18 - Access to Camera light
Iniciado por BOOMER ( Penn State, 22,oct. 2013 21:23 - No hay respuesta
Conéctese…
BOOMER ( Penn State
#1
Miembro registrado
2 mensajes
Publicado el 22,octubre 2013 - 21:23
]I am attempting to capture a QRCode from and LCD screen under low light conditions (no backlight). While using BCCapture works extremely well under normal conditions, there appears to be no way to turn on the Camera light. I have a little Java procdure that I have written to turn on the light (shown below), but unless I unlock the camera BCCapture can't access the phone. I wish I could just get the code produced by BCCapture so I could enter the LightOn procedure to it.
Any suggestions?
import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.os.Bundle;
import android.widget.Button;
public static void flashLightOn() {
android.hardware.Camera mCamera;
mCamera=Camera.open();
if( mCamera != null ){
Parameters params = mCamera.getParameters();
params.setFlashMode( Parameters.FLASH_MODE_TORCH );
mCamera.setParameters( params );
}
mCamera.unlock();
}
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