12-07-2012 11:38 PM
So I have an application running in the background. When it is not visible eg: minimized in active frame mode how do I programmatically maximize it or make it visible? Is this possible?
Solved! Go to Solution.
12-07-2012 11:55 PM
12-31-2012 02:26 PM
>> There's no way to do this. Are you sure you'd even want to? Generally that would bother a user, who may be in the middle of something else and not want to be interrupted.
Really? No way at all? I agree that if the user is in the middle of something else you don't want to bother him/her with an in-your-face app maximization, but suppose the device is asleep -- ie user doing nothing -- and event occurs that requires handling using resources only available when the device is not asleep? This is not possible? Really? No workarounds at all?
12-31-2012 02:36 PM
12-31-2012 03:02 PM
>> The ability to have an app do stuff while the device is "asleep" (note that it never really sleeps) is unrelated to whether the app is visible or not.
Thanks. Yes, I appreciate that code can run while app is in background. But when an app is sent to background, certain resources are turned off. I am playing around now to see if I can "turn on" these resources while the app remains in the background. I'd certainly prefer it this way. Stay tuned! SbG.
12-31-2012 03:12 PM
>> I am playing around now to see if I can "turn on" these resources while the app remains in the background. I'd certainly prefer it this way. Stay tuned!
Ok, just confirmed. One cannot turn on the camera while the app has been backgrounded. I get a return value from camera_open of 16. Therefore -- apparently -- if I want to use any camera calls while in the background, I must find a way to take it out of the background. Any ideas, anyone? SbG.
12-31-2012 04:03 PM
12-31-2012 04:06 PM
>> So even with run_when_backgrounded permission defined, you can't open the camera?
Thanks. I haven't checked if there is a camera specific flag one must flip. But will do so now. The app flag has been set for background, obviously. SbG.
12-31-2012 04:22 PM
I see no flag to run the camera in the back ground. You say other sensors have flags, but the camera is not a sensor, at least as formally defined.
Are you guys sure one can't somehow,/anyhow programmatically wake the app up? I am referring to sending the equivalent a SW_MAXIMIZE msg under Windows. Frustrating. No way to spoof the thing? I don't even need the camera. I just need the camera light. But the camera light won't work w/o a valid camera_handle and I can't get a valid camera handle while in the background. Arrrghhhhh!!!! Thanking you all in advance. SbG.