Results 1 to 4 of 4
  1.    #1  
    When I try this code it has no effect.

    Code:
    Mojo.Controller.stageController.setWindowProperties({blockScreenTimeout: true, setSubtleLightbar: false});
    I use this in my setup = function(); also tried in the activate() function but neither works. Please! I need help!!
    Last edited by JuJulian1987; 03/11/2010 at 01:12 PM.
  2. #2  
    Quote Originally Posted by JuJulian1987 View Post
    When I try this code it has no effect.

    Code:
    Mojo.Controller.stageController.setWindowProperties({blockScreenTimeout: true, setSubtleLightbar: false});
    I use this in my setup = function(); also tried in the activate() function but neither works. Please! I need help!!
    I have the exact same line of code in my glowstick app and it still works.
    Mine is in a function that I call after shaking has been detected. Sorry - maybe it doesn't work in the activate and setup.
    WOG Dev - WebOS Group http://www.WebOSGroup.com
    PMP Dev - http://www.PimpMyPre.com
    Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds
  3. #3  
    Maybe it's because the app hasn't fully displayed when it hits, because of the new splash screen stuff.

    Try putting it in an interval in the setup to be called later:

    Code:
             in setup:
    		this.waitForSomeTime = this.someFunc.bind(this);
    		this.interval = window.setInterval(this.waitForSomeTime , 50); // waits 50ms
    
    new function:
    mayApp.someFunc(event)
    {
    	window.clearInterval(this.interval);
            Mojo.Controller.stageController.setWindowProperties({blockScreenTimeout: true, setSubtleLightbar: false});
    };
    Might work. Play with the time limit too.
    WOG Dev - WebOS Group http://www.WebOSGroup.com
    PMP Dev - http://www.PimpMyPre.com
    Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds
  4.    #4  
    Yes thank you so much it worked! My problem was that it worked without any problems in 1.3.5. Now I just call the method when the start button is pressed. Guess that the Interval would work to but like this it is even better.

Posting Permissions