New Features in 4.5.0 and 4.6.0

New Features in RIM 4.5.0

Spellcheck API

The text in certain fields can now be checked for correct spelling with a UI that the user can use to fix spelling errors. Classes in net.rim.blackberry.api.spellcheck include:

  • AbstractSpellCheckUIListener
  • SpellCheckEngine
  • SpellCheckUI
  • SpellCheckUIListener

MapField API

The MapField can be used to display a map UI. The BlackBerry Maps, and ServiceBook applications must be installed and the device must be able to connect to a LBS server. The only class included is the MapField class which has methods for setting the field dimensions, zooming, rotating, and changing the map region.

Application Control Reason Message API

This can be used to display custom messages when the OS displays an application control prompt.

KeywordFilterField API

Rim has created a filtering list field that consists of an input field and a ListField that gets filtered with each character typed.

  • The KeywordFilterField must have a ReadableList set as it's source list.

Complete listing

For a complete list of new methods included in the 4.5.0 API: http://na.blackberry.com/eng/deliverables/2201/index.jsp

New Features in RIM 4.6.0

Setting the Background

There are background classes, located in net.rim.device.api.ui.decor which can be used to create a custom background for a screen or field.

Setting the border

There is a Border class, located in net.rim.device.api.ui.decor which can be used to override the border for any field.

Aligning a field to the beginning or end of text

  • A flag (Field:FIELD_LEADING) can be used. Example: if you add the field to a vertical field manager, and the user starts using either English or Chinese characters, the field aligns to the left side of the screen.

RecordStore Size

The size limit of a RecordStore object is now 512 KB.

Messages from Access Control

You can use net.rim.api.applicationcontrol to display a custom message when attempting an operation that the user must permit.

Getting location information for an address

There is a Locator class that will return latitudinal and longitudinal information for a given address. The address is sent to an LBS locator server, and an enumeration with data for the address is returned.

Working with HTML Email Messages

Applications can work with html email messages by performing actions such as retrieving the body of a message.

Listening for sent Messages

You can receive notification when an email, sms, or mms is about to be sent.

Listening for changes to default PIM lists

The PIMListListener3 interface receives notifications when a PIM list changes.

Using Math Utilities API

There are new methods in the math Utilities API:

  • double acos(double x): Returns the arc cosine of x
  • static double asin(double x): returns the arc sin of x
  • static double atan(double x): returns the arc tangent of x
  • static double atan2(double y, double x): converts rectangular coordinates(x, y) to polar coordinates (r, theta)
  • static double pow(double x, double y): returns x raised to the power of y
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© 2011 Metova, Inc.