Get the default language of a BlackBerry device
I want to get the lang开发者_如何转开发uage set by the user in the settings screen. I have checked the DeviceInfo class, but don't see anything.
Use the function net.rim.device.api.i18n.Locale.getDefaultForSystem()
to return the current locale in use, and to get the human representation of the language for that locale, use net.rim.device.api.i18n.Locale.getDisplayLanguage()
.
精彩评论