11-23-2012 03:30 PM
I am trying to build a native extension for WebWorks (BB10) to control screen timeout in my app.
Ideally I'd like to set a longer timeout when my app is in foreground, but without affecting the timeout settings of the device itself. I can see SCREEN_PROPERTY_IDLE_TIMEOUT in <screen.h>, which I hope could be used for this purpose.
I got as far as
(a) getting memoryJnext sample work in my app and
(b) finding screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_IDLE_MODE, &idle_mode) code snippet.
The question is how do I assign WebWorks app windows context to screen_win?