03-14-2013 08:48 AM
In my application i needto keep the screen awake on a perticular page. I could achive this using the Window's API setScreenIdleMode(ScreenIdleMode::KeepAwake).
This works fine.
When I navigate to some other page, I need to setScreenIdleMode back to ScreenIdleMode::Normal.
This is not working.
Please let me know if I am missing on anything..
03-14-2013 12:03 PM
03-15-2013 02:27 AM
Yes. I have called the same API as below to set it back to Normal mode.. But it does not seem to work.
03-15-2013 10:07 AM
03-19-2013 01:20 AM
Thanks a lot for the reply.
Actually I have a ForeignWindow in this screen and i had set the following proprty of this foreignwindow
int idle_mode = SCREEN_IDLE_MODE_KEEP_AWAKE;
screen_set_window_property_iv(win, SCREEN_PROPERTY_IDLE_MODE, &idle_mode);
This was the reson setScreenIdleMode(Normal) was taking effect. I removed above two lines and its working fine now.