Tuesday, February 17th, 2009
Fancy writting a Web application on the architecture above? Since announcing the Palm Pre we have seen a lot of people wondering about the goods under the hood. We now have an online reference to check out.
Once you get past the high level stuff, you get to the meat:
Palm’s user experience architecture provides for a greater degree of application scope than is normally considered in a web application. To support this and specific functions of the framework, Palm has introduced a structure for webOS applications built around stages and scenes.
A stage is a declarative HTML structure similar to a conventional HTML window or browser tab. Palm webOS applications can have one or more stages, but typically the primary stage will correspond to the application’s card. Other stages might include a dashboard, or other cards associated with different activities within the application. You should refer back to the earlier example of the Email application where the main card held the Email inbox and another card held a draft Email. Each email card is a separate stage, but part of the same application.
Palm webOS applications are required to use directory and file structure conventions to enable the framework to run the applications without complex configuration files. At the top level the application must have an appinfo.json object, providing the framework with the essential information needed to install and load the app. In addition, all applications will have an index.html file, an icon.png for application’s Launcher icon, and an app folder, which provides a directory structure for assistants and views.
- Storage: HTML5 storage is natively accessible
- Widgets: Can look like this:
- <div x-mojo-element="ToggleButton" id="my-toggle"></div>
- Services: The architecture looks like this:
- Developer Tools: SDK comes with emulator and command line tools
Still looking forward to more details, examples, and such…. but exciting to see the data coming out!
Posted by Dion Almaer at 12:53 am