PreThinking Store

 

Entries in mojo (3)

Thursday
Nov122009

webOS How To: webOS Application Wake Up For Background Tasks Even Without An Open Window

When you think of a Web application, you think of going to an HTML page that then loads scripts and resources to display functionality. Applications in general do not always fit that model. If you launch an “application” like Growl on the Mac, a window doesn’t launch. It merrily kicks off a service in the background.

The same is possible in the world of webOS and browser extension systems. One of the user experiences that I enjoy on webOS is the notification system. Non-modal, and any application can tie into it. There are various levels of notifications:

  • Banners: Thin bottom line one liner that appears quickly
  • Icons: Notifications are grouped together in time
  • Dashboards: Larger areas. A DOM window so you can put controls in there. For example, the media dashboard lets you play, pause, etc.
  • Popups: Even richer larger actionable areas

More on these notifications in another post. If you have an application that wants to tie into the notification system you can do so even if a window isn’t open.

I wanted to find out how to do this, and luckily Mitch Allen has a simple example of this in his RSS News application that he builds in his book on Palm webOS.

I hope to offer a simpler API specialized for this, but it is quite trivial to do thanks to the Power service. The timeout service is located via palm://com.palm.power/timeout and there are various properties that you can pass in to do the real work when you are woken up. What application should be opened? What task should be run when opened? That is all tied in via the application manager service (e.g. see the palm://com.palm.applicationManager/open service below).

[via Almaer Blog]

 

Wednesday
Aug122009

PreDevCamp Meeting in Sunnyvale at Palm's HQ; The Photo Story

The PreDevCamp held this last Saturday at Palm's headquarters in Sunnyvale was a fine outing of the Developers who have worked very hard to get to this point. Big props must to out to Luke Kilpatrick for stepping in with 11 days notice to put the event together and to all the others that assisted predevcampsf to organizing the event.

As Palm's headquarters in Sunnyvale, the meeting room was just off of the Cafeteria in near the front of the building. Donors managed to get sodas and water for the attendees and pizzas were on their way later in the day from Roundtable.

The space was filled pretty quickly with many of the attendees standing in the back and on the sides of the meeting room. Coders from all over including the writer of the Twee app (not to be confused with Pivotal Labs Tweed app), from Utah, was in attendance as well.

Click to read more ...

Tuesday
Mar312009

Pre-Order your copy of webOS book from Amazon 

Paperback version of the Palm webOS book is now available for pre-order from amazon. Written by Mitch Allen, CTO of Software at Palm and the Palm webOS development team. This book "offers a complete tutorial on the design principles, artchitecture, UI, tools, and services necessary to develop webOS applications."

Click to read more ...