12-31-2012 04:35 PM
12-31-2012 05:03 PM
hmm.. your app should still be able to use the camera while it is not in the foreground.We specifically have at least one background service which uses the camera, so I know there is nothing technically preventing it on the camera side.
12-31-2012 08:07 PM
>> our app should still be able to use the camera while it is not in the foreground.
This is an embarassing brain fart on my part. I mentally swapped background processing with processing when the screen shuts down. (That said, one must configure sensors to "run in background" in order for them to work when the screen shuts down. Hence the conflation?) I have not confirmed camera accessibvility while minimized but I take your word for it.
Thank you and apologies for the afrorementioned brain fart.
Alright, my next issue is then to get the screen lock freed programmatically. I have not looked into this. If anyone wants to save me some trouble as opposed to, say, enjoying their New Years Eve.... Ha ha.
Thanks for all your help here this aft. Much appreciated. Happy New Years to you all. 2013 gonna be rippah for this community. -SbG.
12-31-2012 09:52 PM
01-01-2013 12:30 AM
Nah, the "keep awake" functionality won't help me. The use case depends on the device being "dormant", which is to say, app-in-background, screen off. That is the starting premise.
Maybe I can kludge something via notifications. Cheers & thanks again -SbG.
01-01-2013 04:22 AM
good luck... in the future we are looking to decouple camera powerdown from screen powerdown, in which case this may be more feasible. this would impact battery life of course
01-01-2013 09:59 AM
01-01-2013 04:06 PM
>> good luck... in the future we are looking to decouple camera powerdown from screen powerdown, in which case this may be more feasible. this would impact battery life of course
Well, I tried to do what I wanted to do and it seems I am out of luck. The Plan B was to use a notification dialog instead of the camera light. I got this working, but even a notification dlg won't turn the screen back on.
In the docs we see that "You can use a NotificationDialog to display a dialog box when an urgent event occurs." An "urgent message." From an U/I slash design perspective, isn't "urgent" sufficiently important to pay the battery man and spark up the screen?
I can't imagine there isn't this capability inherent to the system and available to in-house developers. I guess it is time to head over to the feature request desk and fill out the paperwork.
Thanks again, guys SbG.
01-01-2013 06:26 PM