Oracle® Java ME Embedded Application Management System API Guide Release 3.4 E35109-03 |
|
Previous |
Next |
This chapter discusses the Locale Change Notifier in the AMS. The LocateChangeNotifier
, which is obtained from the AmsFactory
class, is an interface for managing locale change notification subscriptions. It consists of two methods, which allow the programmer to add or remove listeners from the AMS:
void addLocaleChangeListener(LocaleChangeListener listener)
This method registers the specified locale change listener with the AMS.
void removeLocaleChangeListener(LocaleChangeListener listener)
This method removes the specified locale change listener with the AMS.
This LocaleChangeListener
interface is used to receive locale change notifications. It consists of only one method, void localeChanged()
. This method is called to notify about a locale change. The new locale can be retrieved by querying the "microedition.locale
" system property.