Palm Pre demoed at Google I/O conference | webOS Nation

Palm Pre demoed at Google I/O conference

by Derek Kessler Thu, 28 May 2009 9:53 pm EDT

Google I/O

It wasn't just D7 with Pre action, it also popped up yesterday at the Google I/O conference in San Francisco. The web developer get-together is all about web applications and standards, and of course has a heavy emphasis on Google (and their Android operating system). But if there’s anybody that leverages the latest web standards to their max, it’s Palm and webOS. Every application on the Palm Pre (with the notable exception of Palm OS emulator Classic) has been built using HTML 5, JavaScript, and CSS. SlashGear subsidiary was on hand at I/O to see Palm's presentation on webOS and its standards.

For those not familiar with how all that works, HTML defines the layout of the application, JavaScript allows for fancy transitions, animations, and access to local storage, and CSS is used to style the page/app. Palm’s music app was briefly demoed, and while not anything we’ve seen before, the album art browsing was shown to be based on CSS transformations. Also shown off was the web browser - your history and local application data (like offline Gmail) are all stored using HTML 5.

Thanks to mahootzki for yet another tip, and check out the video after the break!

And then there was the accelerometer API. We’ve known since January that the Pre was going to have an accelerometer at launch, and at the very least it would be used to rotate the web and pictures browsers, but Palm’s gone a step further (like Apple) and opened up the accelerometer API (application programming interface, i.e. the codes that programmers need to use the hardware) for third party programmers. The presentation touched on the various functions available via the API via some specialized DOM Level 2 JavaScript:

Shake: rapid up-down/side-to-side acceleration
Orientation: angle from vertical/horizontal (e.g. to orient the web browser)
Raw Acceleration: both individual axis acceleration (webOS can tell how fast the Pre is moving in any direction...) and individual pitch, roll, and yaw acceleration (...and how quickly the phone is turning to any orientation)