04-27-2013 01:27 PM
I am hoping to bring the backlight on after a certain amount of time rather than always keep the screen awake - is this possible? I'm wondering if an inject of a touch event would do it or something similar?
Solved! Go to Solution.
04-27-2013 01:48 PM
11-05-2013 10:56 AM
There should be a way to enable backlight or keep it on now as I have just noticed an app which keeps the backlight on even though it has been minimized. This happens whilst it records the desktop.
How is it done?
11-05-2013 01:55 PM
11-05-2013 02:04 PM
Actually, I was wrong thinking the backlight stays on in that screen recorder app , I also think I found a bug in it in that it needs a restart of device if you record a video but then send the app to the background and don't touch the screen - the backlight goes out and then when i try to access the camera again (core camera app or using screenrecorder) it won't start until I restart device.
I have just found in the bestcamera sample that camera_start_encode or camera_start_video should keep the backlight on, im still playing with this - I currently can't get 0 returned from start_encode.
Probably though all my efforts over the last few days are pointless as my phone remote app would need to be able to start_viewfinder which won't start unless the backlight is on and there is no way to enable the backlight it seems programatically.
11-05-2013 02:26 PM
I can confirm camera_start_encode does indeed keep the backlight on until you close the viewfinder.
Now, if only there was a way to enable the backlight - there was this ability with java sdk.
int type = SCREEN_EVENT_MTOUCH_TOUCH;
screen_set_event_property_iv(eventz, SCREEN_PROPERTY_TYPE, &type);
int i = screen_send_event(context, eventz, getpid());
whenever an event occurs (just for testing) and even though screen_send_event returns 0 it didn't keep the backlight on so I doubt something like this would work but somebody on this forum has mentioned they got it to work but didn't say how.
I am disapointed that such a simple call to enable backlight isn't available to us.