Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Battery Technology Guide

Battery Technology Guide for Manufacturersfor Developers

Describes how an application manages the battery on a mobile device.

Base version:

1.0

Tested version:

1.0

Phone tested:

No

This document explains why it is so important to manage power carefully on a mobile device. The guide then introduces the IBatteryNotifier class, which applications can register with to receive notifications of events, and the IBattery interface, which gets information about the current state of the battery. Finally, the guide provides sample code for using the IBattery interface in an application.

Documentation resources

For complete details about interfaces (such as IBattery, IModel, and IShell), classes (such as IBatteryNotifier), datatypes, and methods (such as ISHELL_CreateInstance and IBATTERY_QueryInterface) that are available to Brew® MP developers, refer to the Brew Mobile Platform C API Reference, which is available both within the Brew MP Documents folder and on the Brew Mobile Platform Developer website, at: http://developer.brewmp.com/reference/api-all (login required).

For information about creating .mif files refer to the Resource File Markup Reference, which is available both within the Brew MP Documents folder and on the Brew Mobile Platform Developer website, at http://developer.brewmp.com/resources (login required).

The Battery Power Management Technology Guide, which is available on the Brew Mobile Platform Developer website, describes techniques for conserving battery power in Brew MP-enabled mobile devices.

High-level architecture

The battery feature is implemented in the hardware layer of a mobile device. The OEM layer sends backlight-related events to the top-visible Brew MP application, and to background applications that have registered to receive events or notifications.

The battery feature is implemented in the hardware layer of a mobile device. Brew MP sends backlight-related events to the top-visible Brew MP application, and to background applications that have registered to receive events or notifications.