Results 1 to 3 of 3
  1.    #1  
    how can i wake from an alarm and perform a background task without a card
    stage or UI and go back to sleep.

    It looks like alarm service uses the application manager to launch the application and in the handleLaunch function in app-assistant, I am not able to figure out how to prevent a card stage from showing up. (my main stage shows all the time) I tried handling the parameter passed to the handlelaunch and just return doing nothing, but still the ui shows up.

    your help is much appreciated.
  2. #2  
    You need to set "noWindow" to true in the appinfo.json. Search for "noWindow" on the Palm dev site for more details. Then you need to create the stage manually with the createStageWithCallback call.

    When you wake up an app via an alarm, you'll need to call activityStart to keep the app alive while you perform the task. Then call activityEnd to let the app die once the task is complete.
    Quick Post: The quick way to post messages and photos to Twitter & Facebook (video link)
    Music Player (Remix): The next generation music listening experience on webOS (video link)
    GeoStrings: Set location-based reminders and never forget another task (video link)

    Twitter: @Hedami
  3.    #3  
    thanks, that worked. !

Posting Permissions