View Single Post
Old 04-09-2013, 03:34 PM   #27
PaulFreund
*
PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.PaulFreund understands the importance of being earnest.
 
PaulFreund's Avatar
 
Posts: 35
Karma: 145852
Join Date: Apr 2013
Device: Kindle Touch
If somebody wants to test if he gets the goingToScreenSaver event with WebLaunch, include
Code:
var appName = 'com.PaulFreund.WebLaunch';

pillowHelper.RequestStatusBarEvent(
	appName, 
	'com.lab126.powerd', 
	'goingToScreenSaver'
);

pillowHelper.RegisterStatusBarEventCallback(
	appName, 
	function(value) 
	{
		document.write(JSON.stringify(value));
	}
);
after

Code:
var sessionSettings = settings;
and

Code:
return;
after

Code:
//-------------------------------------------------------------
// Open application
function openApp(state)
{
and

Code:
pillowHelper.UnRegisterStatusBarEventCallback(appName);
after

Code:
//-------------------------------------------------------------
// restore status bar on close
function closeApp() 
{
Then all events that are collected by the statusbar will show up and hopefully to goingToScreenSaver event too.
To test please press the power button while preventScreenSaver set to 0 or to 1

Last edited by PaulFreund; 04-09-2013 at 03:34 PM. Reason: forgot something
PaulFreund is offline   Reply With Quote