03-04-2012 07:51 PM
I would like to record some sensor data while in standby mode. I am using Native SDK 2.0 C/C++ and haven't found anything that works when in standby in the same way the Music player does.
I have tried:
int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE;
screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_IDLE_MODE, &idle_mode);
which builds okay but does not seem to have any effect.
Any guidance would be much appreciated.
Roger
03-05-2012 08:19 PM
03-06-2012 06:05 AM
Peter, thank you for your reply.
Geolocation is exactly the one I wanted to use. Is there a way to programmatically adjust the brightness so I leave the application full screen but dim it until black or near black?
Roger
03-06-2012 08:34 AM
03-06-2012 08:44 AM
Until I learn more about using windows I am just using the dialog to present text data ...
I suppose there is no way to change the background and text colour in a dialog?
03-06-2012 08:54 AM - edited 03-06-2012 08:57 AM
Just purchased Battery Guru, it looks really good.
Did you develop it using native SDK? If not what did you use?
03-06-2012 09:05 AM
03-06-2012 10:10 PM
This:
int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE;
screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_IDLE_MODE, &idle_mode);
worked once or twice after I restarted the Playbook.
I had assumed that all I needed to do was include that once near the beginning of the code but I found it works reliably (so far) if I put in the main loop so that it is constantly executed/refreshed.
This isn't what I expected. Is there any documentation saying how it works and where it should be implemented?
03-06-2012 10:28 PM
03-07-2012 04:41 AM
Yes, when it wasn't working I had the single app running full screen. To fix it I had to keep refreshing the KEEP_AWAKE. I am guessing by your comment you don't do that in Battery Guru?