Summary

This chapter wraps up the presentation of the Services available on Palm webOS. There are a number of System services available. The accelerometer receives and responds to device orientation, shaking events, and raw acceleration data. Alarms wake up devices or make specified service requests after a delay or at a specified time. The Connection Manager checks connection status. Location services retrieve a device’s current position and provide tracking capabilities. The Power Management service lets you override the device’s sleep function in order to carry out long operations. System Properties allows you to request a device ID, and System Services provides the system time. Finally, System Sounds lets you associate audio feedback in direct response to user actions, such as typing. While few of these System services are used in the News application, specific code samples were given for most of the service calls.

Another type of service is the Cloud service, specifically Mojo Messaging, which is an XMPP messaging service. This service is essential for background applications that require notifications from a web service or applications that want to share information and events across a community.

Get Palm webOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.