Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the default language of a BlackBerry device

I want to get the language set by the user in the settings screen. I have checked the DeviceInfo class, but don't see anything.

like image 669
idotu Avatar asked Oct 22 '10 15:10

idotu


1 Answers

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().

like image 191
逆さま Avatar answered Nov 19 '22 04:11

逆さま