View the available locales

Many of the methods in the BlackBerry® Administration API require a locale parameter to identify the region and language for the data that your application sends or receives. You can use the findLocales() method to view all the locales that are available on your BlackBerry® Enterprise Server.
  1. Invoke findLocales().
    List<String> locales = utilWebService.findLocales(); 
    
    
  2. Print the available locales.
    for (String itr: locales) 
    {
        System.out.println(itr);
    }
Previous topic: Opening a connection

Was this information helpful? Send us your comments.