Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

get list of country name

How to get list of country names in blackberry

Developer
yosoh
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: get list of country name

don't quite get the question. Are you trying to get the locale ?

 

 

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: get list of country name

I want to display List of country in dropdown field..

using

String[] countries = Locale.getISOCountries();  I can get the 2 letter code for country, but I need country names..

Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: get list of country name

any help?

how to get array of country names

Developer
Adama
Posts: 77
Registered: ‎01-27-2010
My Device: Bold 9000

Re: get list of country name

There is a getDisplayCountry() method in Locale that will get the country's name.  I would use the getAvailableLocales() method and then go through and call getDisplayCountry() for each locale it returns. 

Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: get list of country name

getAvailableLocales() method return only to locale United states and United Kingdom, but I need List of all coutry name

Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: get list of country name

any Suggestions?

Regular Contributor
meeramanesh
Posts: 52
Registered: ‎11-29-2010
My Device: Blackberry 9700

Re: get list of country name

I am also facing the same problem. displayCountryname is listing only two countries. Please help me.

Trusted Contributor
hims_3009
Posts: 227
Registered: ‎12-16-2009
My Device: 9530,8900,9000

Re: get list of country name

I am also facing the same problem, As in I-phone they can find easily from NSLocale but in Blackberry we are not able to find it..... I am really frustrated.

Lathiya Himanshu