Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi There, Currently we have a requirement from carrier (KDDI) that we should not perform any network activity when the screen saver kicks in. We need to resume the network activity when the screen saver is closed. When we start our app and keep the device idle, then when the screen saver is displayed then we get a notification "EVT_APP_NO_CLOSE" based on which we close our network connection. but when the user selects any key the screen saver is closed and application comes to the front. We dont get any events then. I registered for All key events and Shell start status in the MIF file.(NMASK_SHELL_ALL_KEYS and NMASK_SHELL_START_STATUS) They do not send any events when we select any key to close the screen saver and display the app. I did put a timer in the app to check the status of the applet and the applet state is always active even if the screen saver kicks in. So I can use the ISHELL_ActiveApplet(pMe->a.m_pIShell); API to see if the app is in foreground or not. Is there any way to find out that the screen saver is closed and app is visible to the user? Any events we could register to get this? The actual version of BREW on this device is 5.0.4.1 thanks, Jagan

Hi Jagan,  As a workaround return TRUE to the EVT_BUSY event. This will prevent your application from being interrupted by the screensaver application when the screensaver's timeout value has elapsed and screen saver application will not take over your application. Thanks, Mahesh

Hi Jagan,  As a workaround return TRUE to the EVT_BUSY event. This will prevent your application from being interrupted by the screensaver application when the screensaver's timeout value has elapsed and screen saver application will not take over your application. Thanks, Mahesh